[svn] / trunk / vfw / src / driverproc.c Repository:
ViewVC logotype

Diff of /trunk/vfw/src/driverproc.c

Parent Directory Parent Directory | Revision Log Revision Log | View Patch Patch

revision 384, Mon Aug 19 19:19:40 2002 UTC revision 385, Sat Aug 31 09:54:36 2002 UTC
# Line 23  Line 23 
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   *************************************************************************/   *************************************************************************/
# Line 35  Line 36 
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)
# Line 46  Line 47 
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,
# Line 273  Line 274 
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    }

Legend:
Removed from v.384  
changed lines
  Added in v.385

No admin address has been configured
ViewVC Help
Powered by ViewVC 1.0.4