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.7 2004-07-25 02:26:57 suxen_drol Exp $ |
* $Id: driverproc.c,v 1.9 2008-11-30 16:36:44 Isibaar Exp $ |
23 |
* |
* |
24 |
****************************************************************************/ |
****************************************************************************/ |
25 |
|
|
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) |
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); |
310 |
{ |
{ |
311 |
DWORD dwDriverId; |
DWORD dwDriverId; |
312 |
|
|
313 |
dwDriverId = DriverProc(0, 0, DRV_OPEN, 0, 0); |
dwDriverId = (DWORD) DriverProc(0, 0, DRV_OPEN, 0, 0); |
314 |
if (dwDriverId != (DWORD)NULL) |
if (dwDriverId != (DWORD)NULL) |
315 |
{ |
{ |
316 |
if (lstrcmpi(lpCmdLine, "about")==0) { |
if (lstrcmpi(lpCmdLine, "about")==0) { |