Commit 16377936 authored by Stefan Leichter's avatar Stefan Leichter Committed by Alexandre Julliard

Added stubs for capCreateCaptureWindowA/W to get freeVCR started

without crash.
parent 3ac601d5
......@@ -3,6 +3,7 @@ TOPOBJDIR = ../..
SRCDIR = @srcdir@
VPATH = @srcdir@
MODULE = avicap32.dll
IMPORTS = ntdll
LDDLLFLAGS = @LDDLLFLAGS@
SYMBOLFILE = $(MODULE).tmp.o
......
@ stub capCreateCaptureWindowA
@ stub capCreateCaptureWindowW
@ stdcall capCreateCaptureWindowA(str long long long long ptr long) capCreateCaptureWindowA
@ stdcall capCreateCaptureWindowW(wstr long long long long ptr long) capCreateCaptureWindowW
@ stdcall capGetDriverDescriptionA(long ptr long ptr long) capGetDriverDescriptionA
@ stdcall capGetDriverDescriptionW(long ptr long ptr long) capGetDriverDescriptionW
......@@ -17,10 +17,47 @@
*/
#include "vfw.h"
#include "winternl.h"
#include "wine/debug.h"
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,
INT cbName, LPSTR lpszVer, INT cbVer)
{
......@@ -29,6 +66,9 @@ BOOL VFWAPI capGetDriverDescriptionA(WORD wDriverIndex, LPSTR lpszName,
return FALSE;
}
/***********************************************************************
* capGetDriverDescriptionW (AVICAP32.@)
*/
BOOL VFWAPI capGetDriverDescriptionW(WORD wDriverIndex, LPWSTR lpszName,
INT cbName, LPWSTR lpszVer, INT cbVer)
{
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment