| /* |
| * Drivers definitions |
| */ |
| |
| #define DRV_LOAD 0x0001 |
| #define DRV_ENABLE 0x0002 |
| #define DRV_OPEN 0x0003 |
| #define DRV_CLOSE 0x0004 |
| #define DRV_DISABLE 0x0005 |
| #define DRV_FREE 0x0006 |
| #define DRV_CONFIGURE 0x0007 |
| #define DRV_QUERYCONFIGURE 0x0008 |
| #define DRV_INSTALL 0x0009 |
| #define DRV_REMOVE 0x000A |
| #define DRV_EXITSESSION 0x000B |
| #define DRV_EXITAPPLICATION 0x000C |
| #define DRV_POWER 0x000F |
| |
| #define DRV_RESERVED 0x0800 |
| #define DRV_USER 0x4000 |
| |
| #define DRVCNF_CANCEL 0x0000 |
| #define DRVCNF_OK 0x0001 |
| #define DRVCNF_RESTART 0x0002 |
| |
| #define DRVEA_NORMALEXIT 0x0001 |
| #define DRVEA_ABNORMALEXIT 0x0002 |
| |
| #define GND_FIRSTINSTANCEONLY 0x00000001 |
| |
| #define GND_FORWARD 0x00000000 |
| #define GND_REVERSE 0x00000002 |
| |
| typedef struct { |
| DWORD dwDCISize; |
| LPCSTR lpszDCISectionName; |
| LPCSTR lpszDCIAliasName; |
| } DRVCONFIGINFO; |
| typedef DRVCONFIGINFO FAR* LPDRVCONFIGINFO; |
| |
| typedef struct { |
| UINT length; |
| HDRVR hDriver; |
| HINSTANCE hModule; |
| char szAliasName[128]; |
| } DRIVERINFOSTRUCT; |
| typedef DRIVERINFOSTRUCT FAR* LPDRIVERINFOSTRUCT; |
| |
| typedef LONG (CALLBACK* DRIVERPROC)(DWORD, HDRVR, UINT, LPARAM, LPARAM); |
| |
| typedef struct { |
| DRIVERINFOSTRUCT dis; |
| WORD count; |
| void *lpPrevItem; |
| void *lpNextItem; |
| DRIVERPROC lpDrvProc; |
| } DRIVERITEM; |
| typedef DRIVERITEM FAR* LPDRIVERITEM; |
| |
| LRESULT DefDriverProc(DWORD dwDevID, HDRVR hDriv, WORD wMsg, |
| DWORD dwParam1, DWORD dwParam2); |
| HDRVR OpenDriver(LPSTR szDriverName, LPSTR szSectionName, LPARAM lParam2); |
| LRESULT CloseDriver(HDRVR hDriver, LPARAM lParam1, LPARAM lParam2); |
| LRESULT SendDriverMessage(HDRVR hDriver, WORD message, LPARAM lParam1, LPARAM lParam2); |
| HINSTANCE GetDriverModuleHandle(HDRVR hDriver); |
| HDRVR GetNextDriver(HDRVR, DWORD); |
| BOOL GetDriverInfo(HDRVR, DRIVERINFOSTRUCT FAR*); |
| |
| |
| |