[cvs] / xvidcore / vfw / src / driverproc.c Repository:
ViewVC logotype

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

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

revision 1.8, Fri Sep 9 11:34:51 2005 UTC revision 1.12, Thu Dec 2 06:46:07 2010 UTC
# Line 3  Line 3 
3   *      XVID MPEG-4 VFW FRONTEND   *      XVID MPEG-4 VFW FRONTEND
4   *      - driverproc main -   *      - driverproc main -
5   *   *
6   *  Copyright(C) 2001-2003 Peter Ross <pross@xvid.org>   *  Copyright(C) Peter Ross <pross@xvid.org>
7   *   *
8   *  This program is free software ; you can redistribute it and/or modify   *  This program is free software ; you can redistribute it and/or modify
9   *  it under the terms of the GNU General Public License as published by   *  it under the terms of the GNU General Public License as published by
# Line 35  Line 35 
35    
36  static int clean_dll_bindings(CODEC* codec);  static int clean_dll_bindings(CODEC* codec);
37    
38  BOOL WINAPI DllMain(  INT_PTR WINAPI DllMain(
39          HANDLE hModule,          HANDLE hModule,
40          DWORD  ul_reason_for_call,          DWORD  ul_reason_for_call,
41          LPVOID lpReserved)          LPVOID lpReserved)
# Line 45  Line 45 
45  }  }
46    
47  /* __declspec(dllexport) */ LRESULT WINAPI DriverProc(  /* __declspec(dllexport) */ LRESULT WINAPI DriverProc(
48          DWORD dwDriverId,          DWORD_PTR dwDriverId,
49          HDRVR hDriver,          HDRVR hDriver,
50          UINT uMsg,          UINT uMsg,
51          LPARAM lParam1,          LPARAM lParam1,
# Line 308  Line 308 
308    
309  void WINAPI Configure(HWND hwnd, HINSTANCE hinst, LPTSTR lpCmdLine, int nCmdShow)  void WINAPI Configure(HWND hwnd, HINSTANCE hinst, LPTSTR lpCmdLine, int nCmdShow)
310  {  {
311          DWORD dwDriverId;          LRESULT dwDriverId;
312    
313          dwDriverId = DriverProc(0, 0, DRV_OPEN, 0, 0);          dwDriverId = (LRESULT) DriverProc(0, 0, DRV_OPEN, 0, 0);
314          if (dwDriverId != (DWORD)NULL)          if (dwDriverId != (LRESULT)NULL)
315          {          {
316                  if (lstrcmpi(lpCmdLine, "about")==0) {                  if (lstrcmpi(lpCmdLine, "about")==0) {
317                          DriverProc(dwDriverId, 0, ICM_ABOUT, (LPARAM)GetDesktopWindow(), 0);                          DriverProc(dwDriverId, 0, ICM_ABOUT, (LPARAM)GetDesktopWindow(), 0);

Legend:
Removed from v.1.8  
changed lines
  Added in v.1.12

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