23 |
* |
* |
24 |
* History: |
* History: |
25 |
* |
* |
26 |
|
* 31.08.2002 Configure() export |
27 |
* 01.12.2001 inital version; (c)2001 peter ross <suxen_drol@hotmail.com> |
* 01.12.2001 inital version; (c)2001 peter ross <suxen_drol@hotmail.com> |
28 |
* |
* |
29 |
*************************************************************************/ |
*************************************************************************/ |
36 |
#include "resource.h" |
#include "resource.h" |
37 |
|
|
38 |
|
|
39 |
BOOL APIENTRY DllMain( |
BOOL WINAPI DllMain( |
40 |
HANDLE hModule, |
HANDLE hModule, |
41 |
DWORD ul_reason_for_call, |
DWORD ul_reason_for_call, |
42 |
LPVOID lpReserved) |
LPVOID lpReserved) |
47 |
|
|
48 |
|
|
49 |
|
|
50 |
__declspec(dllexport) LRESULT WINAPI DriverProc( |
/* __declspec(dllexport) */ LRESULT WINAPI DriverProc( |
51 |
DWORD dwDriverId, |
DWORD dwDriverId, |
52 |
HDRVR hDriver, |
HDRVR hDriver, |
53 |
UINT uMsg, |
UINT uMsg, |
274 |
return DefDriverProc(dwDriverId, hDriver, uMsg, lParam1, lParam2); |
return DefDriverProc(dwDriverId, hDriver, uMsg, lParam1, lParam2); |
275 |
} |
} |
276 |
} |
} |
277 |
|
|
278 |
|
|
279 |
|
void WINAPI Configure(HWND hwnd, HINSTANCE hinst, LPTSTR lpCmdLine, int nCmdShow) |
280 |
|
{ |
281 |
|
DWORD dwDriverId; |
282 |
|
|
283 |
|
dwDriverId = DriverProc(0, 0, DRV_OPEN, 0, 0); |
284 |
|
if (dwDriverId != (DWORD)NULL) |
285 |
|
{ |
286 |
|
DriverProc(dwDriverId, 0, ICM_CONFIGURE, 0, 0); |
287 |
|
DriverProc(dwDriverId, 0, DRV_CLOSE, 0, 0); |
288 |
|
} |
289 |
|
} |