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 |
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, |
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 = (DWORD) 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); |