OpenCBM
Data Structures | Macros | Typedefs | Functions
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 "arch.h"
#include "cbmioctl.h"
#include "i_opencbm.h"
#include "libmisc.h"
#include "opencbm-plugin.h"
#include "opencbm-plugin-install.h"
#include "version.h"
#include <getopt.h>
#include "debug.h"
#include "instcbm.h"

Go to the source code of this file.

Data Structures

struct  InstallPluginCallback_context_s
 @@@ More...
 

Macros

#define DBG_USERMODE
 
#define DBG_PROGNAME   "INSTCBM.EXE"
 
#define DBG_IS_DEBUG_C
 
#define KERNEL32_DLL   "kernel32.dll"
 
#define KERNEL32API_GetNativeSystemInfo   "GetNativeSystemInfo"
 
#define VER_SUITE_WH_SERVER   0x00008000
 
#define SM_SERVERR2   89
 
#define VER_SUITE_STORAGE_SERVER   0x00002000
 

Typedefs

typedef void(WINAPIPGetNativeSystemInfo )(LPSYSTEM_INFO)
 
typedef BOOL HandleNeededFilesCallback_t (const char *DestinationPath, const char *File)
 Type of the callback function for HandleNeededFiles() More...
 
typedef struct
InstallPluginCallback_context_s 
InstallPluginCallback_context_t
 @@@ More...
 

Functions

void GetProcessorArchitecture (WORD wProcessorArchitecture, char szOS[])
 
HMODULE LoadLocalOpenCBMDll (void)
 @@@ More...
 
int __cdecl main (int Argc, char **Argv)
 Main function. More...
 

Detailed Description

Program to install and uninstall the OPENCBM driver.



Author
Spiro Trikaliotis

Definition in file instcbm.c.

Macro Definition Documentation

#define DBG_IS_DEBUG_C

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

Definition at line 43 of file instcbm.c.

#define DBG_PROGNAME   "INSTCBM.EXE"

The name of the executable

Definition at line 40 of file instcbm.c.

#define DBG_USERMODE

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

Definition at line 37 of file instcbm.c.

#define KERNEL32_DLL   "kernel32.dll"

GetOsVersion() uses the following functions

Definition at line 46 of file instcbm.c.

Typedef Documentation

typedef BOOL HandleNeededFilesCallback_t(const char *DestinationPath, const char *File)

Type of the callback function for HandleNeededFiles()

Parameters
DestinationPathThe destination path of the installed file
FileThe name of the destination file.
Returns
TRUE on error, else FALSE.

Definition at line 1281 of file instcbm.c.

@@@

Todo:
document

Function Documentation

HMODULE LoadLocalOpenCBMDll ( void  )

@@@

Todo:
document
Returns

Definition at line 1479 of file instcbm.c.

References FUNC_ENTER, and FUNC_LEAVE_HMODULE.

Referenced by get_all_installed_plugins().

int __cdecl main ( int  Argc,
char **  Argv 
)

Main function.

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

Parameters
ArgcThe count of arguments, as given to main().
ArgvThe arguments vector, as given to main().
Returns
0 on success, everything else indicated an error.

Definition at line 2134 of file instcbm.c.

References DBG_PREFIX, DBG_PRINT, FUNC_ENTER, FUNC_LEAVE_INT, and PluginListFree().