Main Page | Data Structures | Directories | File List | Data Fields | Globals | Related Pages

startstop.c File Reference

Functions for starting and stopping the driver. More...

#include <windows.h>
#include <stdio.h>
#include "cbmioctl.h"
#include "instcbm.h"
#include "i_opencbm.h"
#include "version.h"
#include "debug.h"

Go to the source code of this file.

Defines

#define DBG_USERMODE
#define DBG_PROGNAME   "INSTCBM.EXE"

Functions

VOID OutputPathString (IN PCHAR Text, IN PCHAR Path)
 Output a path.
BOOL CbmCheckCorrectInstallation (VOID)
 Check if the driver was correctly installed.


Detailed Description

Functions for starting and stopping the driver.

**************************************************************

Author:
Spiro Trikaliotis
Version:
Id
startstop.c,v 1.29 2006/04/28 20:27:52 trikalio Exp


Definition in file startstop.c.


Define Documentation

#define DBG_PROGNAME   "INSTCBM.EXE"
 

The name of the executable

Definition at line 35 of file startstop.c.

#define DBG_USERMODE
 

Mark: We are in user-space (for debug.h)

Definition at line 32 of file startstop.c.


Function Documentation

BOOL CbmCheckCorrectInstallation VOID   ) 
 

Check if the driver was correctly installed.

This function checks if the driver was correctly installed.

Returns:
FALSE on success, TRUE on error,
This function opens the opencbm driver, tests if anything is ok - especially, if the interrupt could be obtained - and reports this status.

If there was no interrupt available, it tries to enable it on the parallel port.

Definition at line 444 of file startstop.c.

References CBM_I_DRIVER_INSTALL_0M_NO_INTERRUPT, cbm_i_driver_start(), cbm_i_driver_stop(), cbm_i_i_driver_install(), CbmParportRestart(), DBG_PREFIX, DBG_PRINT, FUNC_ENTER, FUNC_LEAVE_BOOL, and IsDriverStartedAutomatically().

VOID OutputPathString IN PCHAR  Text,
IN PCHAR  Path
 

Output a path.

Parameters:
Text Pointer to a string that will be printed before the path string.
Path Pointer to a string which contains the path.

Definition at line 50 of file startstop.c.

References DBG_PREFIX, DBG_PRINT, FUNC_ENTER, and FUNC_LEAVE.


Generated on Sun Apr 30 18:46:16 2006 for opencbm by  doxygen 1.4.2