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) { |
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 |
} |
} |