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

instcbm.c File Reference

Program to install and uninstall the OPENCBM driver. More...

#include <windows.h>
#include <stdio.h>
#include <stdlib.h>
#include <direct.h>
#include "cbmioctl.h"
#include "version.h"
#include "arch.h"
#include <getopt.h>
#include "debug.h"
#include "instcbm.h"

Go to the source code of this file.

Defines

#define DBG_USERMODE
#define DBG_PROGNAME   "INSTCBM.EXE"
#define DBG_IS_DEBUG_C

Typedefs

typedef enum osversion_e osversion_t
typedef parameter_s parameter_t
 The parameter which are given on the command-line.

Enumerations

enum  osversion_e {
  WINUNSUPPORTED, WINNT3, WINNT4, WIN2000,
  WINXP, WINNEWER
}

Functions

PCHAR FormatErrorMessage (DWORD Error)
 Format a returned error code into a string.
int __cdecl main (int Argc, char **Argv)
 Main function.


Detailed Description

Program to install and uninstall the OPENCBM driver.

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

Author:
Spiro Trikaliotis
Version:
Id
instcbm.c,v 1.56 2006/04/28 19:02:32 trikalio Exp


Definition in file instcbm.c.


Define Documentation

#define DBG_IS_DEBUG_C
 

This file is "like" debug.c, that is, define some variables

Definition at line 39 of file instcbm.c.

#define DBG_PROGNAME   "INSTCBM.EXE"
 

The name of the executable

Definition at line 36 of file instcbm.c.

#define DBG_USERMODE
 

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

Definition at line 33 of file instcbm.c.


Typedef Documentation

typedef enum osversion_e osversion_t
 

This type describes the operating system we are running on


Enumeration Type Documentation

enum osversion_e
 

This type describes the operating system we are running on

Enumeration values:
WINUNSUPPORTED  an unsupported operating system
WINNT3  Windows NT 3.x (does the driver work there?
WINNT4  Windows NT 4.x.
WIN2000  Windows 2000 (NT 5.0).
WINXP  Windows XP (NT 5.1).
WINNEWER  newer than WIN XP

Definition at line 79 of file instcbm.c.


Function Documentation

PCHAR FormatErrorMessage DWORD  Error  ) 
 

Format a returned error code into a string.

This function formats a returned error code into a string.

Parameters:
Error The error number to be formatted.
Returns:
The string describing the error given by the error code.

Definition at line 56 of file instcbm.c.

Referenced by CbmInstall(), and CbmRemove().

int __cdecl main int  Argc,
char **  Argv
 

Main function.

This function performs the action the user has given on the command-line.

Parameters:
Argc The count of arguments, as given to main().
Argv The arguments vector, as given to main().
Returns:
0 on success, everything else indicated an error.

Definition at line 1266 of file instcbm.c.

References parameter_s::CheckInstall, DBG_PREFIX, DBG_PRINT, parameter_s::EnumerateParport, FUNC_ENTER, FUNC_LEAVE_INT, parameter_s::NoExecute, parameter_s::OsVersion, parameter_s::Remove, parameter_s::Update, and WINUNSUPPORTED.


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