OpenCBM
|
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) |
Shared library / DLL for accessing the driver, windows specific code.
Definition in file xum1541/WINDOWS/dllmain.c.
#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.
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.
Module | A handle to the DLL. |
Reason | Specifies a flag indicating why the DLL entry-point function is being called. |
Reserved | Specifies further aspects of DLL initialization and cleanup |
Definition at line 68 of file xum1541/WINDOWS/dllmain.c.