--- trunk/vfw/src/driverproc.c 2002/03/23 06:58:56 61 +++ trunk/vfw/src/driverproc.c 2002/09/21 03:11:36 499 @@ -23,7 +23,8 @@ * * History: * - * 01.12.2001 inital version; (c)2001 peter ross + * 31.08.2002 Configure() export + * 01.12.2001 inital version; (c)2001 peter ross * *************************************************************************/ @@ -35,7 +36,7 @@ #include "resource.h" -BOOL APIENTRY DllMain( +BOOL WINAPI DllMain( HANDLE hModule, DWORD ul_reason_for_call, LPVOID lpReserved) @@ -46,7 +47,7 @@ -__declspec(dllexport) LRESULT WINAPI DriverProc( +/* __declspec(dllexport) */ LRESULT WINAPI DriverProc( DWORD dwDriverId, HDRVR hDriver, UINT uMsg, @@ -62,7 +63,7 @@ case DRV_LOAD : case DRV_FREE : - DRV_OK; + return DRV_OK; case DRV_OPEN : DEBUG("DRV_OPEN"); @@ -145,8 +146,6 @@ return lParam2; /* size of struct */ } - DEBUG("ICM_GETINFO end"); - /* state control */ @@ -275,3 +274,16 @@ return DefDriverProc(dwDriverId, hDriver, uMsg, lParam1, lParam2); } } + + +void WINAPI Configure(HWND hwnd, HINSTANCE hinst, LPTSTR lpCmdLine, int nCmdShow) +{ + DWORD dwDriverId; + + dwDriverId = DriverProc(0, 0, DRV_OPEN, 0, 0); + if (dwDriverId != (DWORD)NULL) + { + DriverProc(dwDriverId, 0, ICM_CONFIGURE, 0, 0); + DriverProc(dwDriverId, 0, DRV_CLOSE, 0, 0); + } +}