OpenCBM
Macros | Functions
startstop.c File Reference

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

#include <windows.h>
#include <stdio.h>
#include "cbmioctl.h"
#include "i_opencbm.h"
#include "archlib.h"
#include "version.h"
#include <stdlib.h>
#include "debug.h"
#include "libmisc.h"

Go to the source code of this file.

Macros

#define DBG_USERMODE
 
#define DBG_PROGNAME   "INSTCBM.EXE"
 

Functions

int CbmCheckDriver (void)
 Check for the correct installation. More...
 

Detailed Description

Functions for starting and stopping the driver.



Author
Spiro Trikaliotis

Definition in file startstop.c.

Macro Definition Documentation

#define DBG_PROGNAME   "INSTCBM.EXE"

The name of the executable

Definition at line 36 of file startstop.c.

#define DBG_USERMODE

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

Definition at line 33 of file startstop.c.

Function Documentation

int CbmCheckDriver ( void  )

Check for the correct installation.

This function checks if the driver was correctly installed.

Returns
Return value which will be given on return from main(). That is, 0 on success, everything else indicates an error.
Todo:
NeededAccessRights()
Todo:
Suggested output from WoMo: Checking configuration for OpenCBM: No problems found in current configuration:

Driver configuration: Port: automatic (0), currently using LPT 1 IRQ mode: enabled Driver start mode: manually (3)

Definition at line 465 of file startstop.c.

References DBG_PREFIX, DBG_PRINT, FUNC_ENTER, and FUNC_LEAVE_INT.

Referenced by opencbm_plugin_install_do_install().