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

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

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

revision 1495, Thu Jul 15 11:53:46 2004 UTC revision 1910, 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 19  Line 19 
19   *  along with this program ; if not, write to the Free Software   *  along with this program ; if not, write to the Free Software
20   *  Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA  02111-1307 USA   *  Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA  02111-1307 USA
21   *   *
22   * $Id: driverproc.c,v 1.6 2004-07-15 11:53:46 suxen_drol Exp $   * $Id: driverproc.c,v 1.12 2010-12-02 06:46:07 Isibaar Exp $
23   *   *
24   ****************************************************************************/   ****************************************************************************/
25    
# 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 147  Line 147 
147                                  VIDCF_COMPRESSFRAMES;                                  VIDCF_COMPRESSFRAMES;
148    
149                          icinfo->dwVersion = 0;                          icinfo->dwVersion = 0;
150    #if !defined(ICVERSION)
151    #define ICVERSION       0x0104
152    #endif
153                          icinfo->dwVersionICM = ICVERSION;                          icinfo->dwVersionICM = ICVERSION;
154    
155                          wcscpy(icinfo->szName, XVID_NAME_L);                          wcscpy(icinfo->szName, XVID_NAME_L);
# Line 305  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) {
317                            DriverProc(dwDriverId, 0, ICM_ABOUT, (LPARAM)GetDesktopWindow(), 0);
318                    }else{
319                  DriverProc(dwDriverId, 0, ICM_CONFIGURE, (LPARAM)GetDesktopWindow(), 0);                  DriverProc(dwDriverId, 0, ICM_CONFIGURE, (LPARAM)GetDesktopWindow(), 0);
320                    }
321                  DriverProc(dwDriverId, 0, DRV_CLOSE, 0, 0);                  DriverProc(dwDriverId, 0, DRV_CLOSE, 0, 0);
322          }          }
323  }  }

Legend:
Removed from v.1495  
changed lines
  Added in v.1910

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