Added stubs for capCreateCaptureWindowA/W to get freeVCR started

without crash.
This commit is contained in:
Stefan Leichter 2002-10-07 21:43:13 +00:00 committed by Alexandre Julliard
parent 3ac601d52b
commit 16377936e2
3 changed files with 43 additions and 2 deletions

View File

@ -3,6 +3,7 @@ TOPOBJDIR = ../..
SRCDIR = @srcdir@ SRCDIR = @srcdir@
VPATH = @srcdir@ VPATH = @srcdir@
MODULE = avicap32.dll MODULE = avicap32.dll
IMPORTS = ntdll
LDDLLFLAGS = @LDDLLFLAGS@ LDDLLFLAGS = @LDDLLFLAGS@
SYMBOLFILE = $(MODULE).tmp.o SYMBOLFILE = $(MODULE).tmp.o

View File

@ -1,4 +1,4 @@
@ stub capCreateCaptureWindowA @ stdcall capCreateCaptureWindowA(str long long long long ptr long) capCreateCaptureWindowA
@ stub capCreateCaptureWindowW @ stdcall capCreateCaptureWindowW(wstr long long long long ptr long) capCreateCaptureWindowW
@ stdcall capGetDriverDescriptionA(long ptr long ptr long) capGetDriverDescriptionA @ stdcall capGetDriverDescriptionA(long ptr long ptr long) capGetDriverDescriptionA
@ stdcall capGetDriverDescriptionW(long ptr long ptr long) capGetDriverDescriptionW @ stdcall capGetDriverDescriptionW(long ptr long ptr long) capGetDriverDescriptionW

View File

@ -17,10 +17,47 @@
*/ */
#include "vfw.h" #include "vfw.h"
#include "winternl.h"
#include "wine/debug.h" #include "wine/debug.h"
WINE_DEFAULT_DEBUG_CHANNEL(avicap); WINE_DEFAULT_DEBUG_CHANNEL(avicap);
/***********************************************************************
* capCreateCaptureWindowW (AVICAP32.@)
*/
HWND VFWAPI capCreateCaptureWindowW(LPCWSTR lpszWindowName, DWORD dwStyle, INT x,
INT y, INT nWidth, INT nHeight, HWND hWnd,
INT nID)
{
FIXME("%s, %08lx, %08x, %08x, %08x, %08x, %x, %08x\n",
debugstr_w(lpszWindowName), dwStyle,
x, y, nWidth, nHeight, hWnd, nID);
return 0;
}
/***********************************************************************
* capCreateCaptureWindowA (AVICAP32.@)
*/
HWND VFWAPI capCreateCaptureWindowA(LPCSTR lpszWindowName, DWORD dwStyle, INT x,
INT y, INT nWidth, INT nHeight, HWND hWnd,
INT nID)
{ UNICODE_STRING nameW;
HWND retW;
if (lpszWindowName) RtlCreateUnicodeStringFromAsciiz(&nameW, lpszWindowName);
else nameW.Buffer = NULL;
retW = capCreateCaptureWindowW(nameW.Buffer, dwStyle, x, y, nWidth, nHeight,
hWnd, nID);
RtlFreeUnicodeString(&nameW);
return retW;
}
/***********************************************************************
* capGetDriverDescriptionA (AVICAP32.@)
*/
BOOL VFWAPI capGetDriverDescriptionA(WORD wDriverIndex, LPSTR lpszName, BOOL VFWAPI capGetDriverDescriptionA(WORD wDriverIndex, LPSTR lpszName,
INT cbName, LPSTR lpszVer, INT cbVer) INT cbName, LPSTR lpszVer, INT cbVer)
{ {
@ -29,6 +66,9 @@ BOOL VFWAPI capGetDriverDescriptionA(WORD wDriverIndex, LPSTR lpszName,
return FALSE; return FALSE;
} }
/***********************************************************************
* capGetDriverDescriptionW (AVICAP32.@)
*/
BOOL VFWAPI capGetDriverDescriptionW(WORD wDriverIndex, LPWSTR lpszName, BOOL VFWAPI capGetDriverDescriptionW(WORD wDriverIndex, LPWSTR lpszName,
INT cbName, LPWSTR lpszVer, INT cbVer) INT cbName, LPWSTR lpszVer, INT cbVer)
{ {