OpenCBM
Macros | Functions
xum1541/WINDOWS/dllmain.c File Reference

Shared library / DLL for accessing the driver, windows specific code. More...

#include <windows.h>
#include <windowsx.h>
#include "dynlibusb.h"
#include "debug.h"
#include "archlib.h"
#include "xum1541.h"

Go to the source code of this file.

Macros

#define DBG_USERMODE
 
#define DBG_DLL
 
#define DBG_PROGNAME   "OPENCBM-XUM1541.DLL"
 
#define OPENCBM_PLUGIN
 mark: We are building the DLL */ More...
 

Functions

BOOL WINAPI DllMain (IN HANDLE Module, IN DWORD Reason, IN LPVOID Reserved)
 Dummy DllMain. More...
 
int CBMAPIDECL opencbm_plugin_init (void)
 
void CBMAPIDECL opencbm_plugin_uninit (void)
 

Detailed Description

Shared library / DLL for accessing the driver, windows specific code.



Author
Michael Klein, Spiro Trikaliotis

Definition in file xum1541/WINDOWS/dllmain.c.

Macro Definition Documentation

#define DBG_DLL

Mark: We are building the DLL

Definition at line 30 of file xum1541/WINDOWS/dllmain.c.

#define DBG_PROGNAME   "OPENCBM-XUM1541.DLL"

The name of the executable

Definition at line 33 of file xum1541/WINDOWS/dllmain.c.

#define DBG_USERMODE

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

Definition at line 27 of file xum1541/WINDOWS/dllmain.c.

#define OPENCBM_PLUGIN

mark: We are building the DLL */

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

Definition at line 41 of file xum1541/WINDOWS/dllmain.c.

Function Documentation

BOOL WINAPI DllMain ( IN HANDLE  Module,
IN DWORD  Reason,
IN LPVOID  Reserved 
)

Dummy DllMain.

This function is a dummy DllMain(). Without it, the DLL is not completely initialized, which breaks us.

Parameters
ModuleA handle to the DLL.
ReasonSpecifies a flag indicating why the DLL entry-point function is being called.
ReservedSpecifies further aspects of DLL initialization and cleanup
Returns
FALSE if the DLL load should be aborted, else TRUE
Remarks
For details, look up any documentation on DllMain().

Definition at line 68 of file xum1541/WINDOWS/dllmain.c.