5 #define DRV_LOAD 0x0001
6 #define DRV_ENABLE 0x0002
7 #define DRV_OPEN 0x0003
8 #define DRV_CLOSE 0x0004
9 #define DRV_DISABLE 0x0005
10 #define DRV_FREE 0x0006
11 #define DRV_CONFIGURE 0x0007
12 #define DRV_QUERYCONFIGURE 0x0008
13 #define DRV_INSTALL 0x0009
14 #define DRV_REMOVE 0x000A
15 #define DRV_EXITSESSION 0x000B
16 #define DRV_EXITAPPLICATION 0x000C
17 #define DRV_POWER 0x000F
19 #define DRV_RESERVED 0x0800
20 #define DRV_USER 0x4000
22 #define DRVCNF_CANCEL 0x0000
23 #define DRVCNF_OK 0x0001
24 #define DRVCNF_RESTART 0x0002
26 #define DRVEA_NORMALEXIT 0x0001
27 #define DRVEA_ABNORMALEXIT 0x0002
29 #define GND_FIRSTINSTANCEONLY 0x00000001
31 #define GND_FORWARD 0x00000000
32 #define GND_REVERSE 0x00000002
36 LPCSTR lpszDCISectionName
;
37 LPCSTR lpszDCIAliasName
;
38 } DRVCONFIGINFO
, *LPDRVCONFIGINFO
;
45 CHAR szAliasName
[128];
46 } DRIVERINFOSTRUCT16
, *LPDRIVERINFOSTRUCT16
;
48 typedef struct tagDRIVERITEM
50 DRIVERINFOSTRUCT16 dis
;
52 struct tagDRIVERITEM
*lpPrevItem
;
53 struct tagDRIVERITEM
*lpNextItem
;
55 } DRIVERITEM
, *LPDRIVERITEM
;
57 LRESULT
DefDriverProc(DWORD dwDevID
, HDRVR hDriv
, UINT16 wMsg
,
58 LPARAM dwParam1
, LPARAM dwParam2
);
59 HDRVR16
OpenDriver(LPSTR szDriverName
, LPSTR szSectionName
, LPARAM lParam2
);
60 LRESULT
CloseDriver(HDRVR16 hDriver
, LPARAM lParam1
, LPARAM lParam2
);
61 LRESULT
SendDriverMessage( HDRVR16 hDriver
, UINT16 message
, LPARAM lParam1
,
63 HMODULE16
GetDriverModuleHandle(HDRVR16 hDriver
);
64 HDRVR16
GetNextDriver(HDRVR16
, DWORD
);
65 BOOL16
GetDriverInfo(HDRVR16
, DRIVERINFOSTRUCT16
*);