[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 383, Mon Aug 19 09:40:30 2002 UTC revision 859, Sun Feb 16 05:03:55 2003 UTC
# Line 23  Line 23 
23   *   *
24   *      History:   *      History:
25   *   *
26   *      01.12.2001      inital version; (c)2001 peter ross <suxen_drol@hotmail.com>   *      31.08.2002      Configure() export
27     *      01.12.2001      inital version; (c)2001 peter ross <pross@xvid.org>
28   *   *
29   *************************************************************************/   *************************************************************************/
30    
# 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 86  Line 87 
87                          }                          }
88    
89                          codec->ehandle = codec->dhandle = NULL;                          codec->ehandle = codec->dhandle = NULL;
90                            codec->fbase = 25;
91                            codec->fincr = 1;
92                          config_reg_get(&codec->config);                          config_reg_get(&codec->config);
93    
94                          /* bad things happen if this is uncommented                          /* bad things happen if this is uncommented
# Line 273  Line 276 
276                  return DefDriverProc(dwDriverId, hDriver, uMsg, lParam1, lParam2);                  return DefDriverProc(dwDriverId, hDriver, uMsg, lParam1, lParam2);
277          }          }
278  }  }
279    
280    
281    void WINAPI Configure(HWND hwnd, HINSTANCE hinst, LPTSTR lpCmdLine, int nCmdShow)
282    {
283            DWORD dwDriverId;
284    
285            dwDriverId = DriverProc(0, 0, DRV_OPEN, 0, 0);
286            if (dwDriverId != (DWORD)NULL)
287            {
288                    DriverProc(dwDriverId, 0, ICM_CONFIGURE, 0, 0);
289                    DriverProc(dwDriverId, 0, DRV_CLOSE, 0, 0);
290            }
291    }

Legend:
Removed from v.383  
changed lines
  Added in v.859

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