From 4df788225faddd16e5ecea64a2e7f6f15b1a4a42 Mon Sep 17 00:00:00 2001
From: Hidenori Takeshima <hidenori@a2.ctktv.ne.jp>
Date: Tue, 19 Mar 2002 02:07:40 +0000
Subject: [PATCH] Added stubs.

---
 dlls/avicap32/avicap32.spec   | 10 ++---
 dlls/avicap32/avicap32_main.c | 79 ++++++++++++++++++++++++++++++++++-
 2 files changed, 83 insertions(+), 6 deletions(-)

diff --git a/dlls/avicap32/avicap32.spec b/dlls/avicap32/avicap32.spec
index fded303e4a3..6b050a6add8 100644
--- a/dlls/avicap32/avicap32.spec
+++ b/dlls/avicap32/avicap32.spec
@@ -3,9 +3,9 @@ type win32
 
 import ntdll.dll
 
-debug_channels()
+debug_channels (avicap32)
 
-@ stub capCreateCaptureWindowA
-@ stub capCreateCaptureWindowW
-@ stub capGetDriverDescriptionA
-@ stub capGetDriverDescriptionW
+@ stdcall capCreateCaptureWindowA(str long long long long long long long) capCreateCaptureWindowA
+@ stdcall capCreateCaptureWindowW(wstr long long long long long long long) capCreateCaptureWindowW
+@ stdcall capGetDriverDescriptionA(long ptr long ptr long) capGetDriverDescriptionA
+@ stdcall capGetDriverDescriptionW(long ptr long ptr long) capGetDriverDescriptionW
diff --git a/dlls/avicap32/avicap32_main.c b/dlls/avicap32/avicap32_main.c
index 67a01ed518c..97abd40966e 100644
--- a/dlls/avicap32/avicap32_main.c
+++ b/dlls/avicap32/avicap32_main.c
@@ -1 +1,78 @@
-/* nothing here yet */
+/*
+ * Copyright (C) Hidenori TAKESHIMA
+ *
+ * This library is free software; you can redistribute it and/or
+ * modify it under the terms of the GNU Lesser General Public
+ * License as published by the Free Software Foundation; either
+ * version 2.1 of the License, or (at your option) any later version.
+ *
+ * This library is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
+ * Lesser General Public License for more details.
+ *
+ * You should have received a copy of the GNU Lesser General Public
+ * License along with this library; if not, write to the Free Software
+ * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA  02111-1307  USA
+ *
+ *	FIXME - stub
+ */
+
+#include "winbase.h"
+#include "winuser.h"
+#include "wingdi.h"
+#include "vfw.h"
+
+#include "wine/debug.h"
+
+WINE_DEFAULT_DEBUG_CHANNEL(avicap32);
+
+
+/***********************************************************************
+ *
+ *		capCreateCaptureWindowA (AVICAP.@)
+ *
+ */
+HWND WINAPI capCreateCaptureWindowA( LPCSTR pszTitle, DWORD dwStyle, int x, int y, int width, int height, HWND hwndParent, int nID )
+{
+	FIXME( "(%s,%lx,%d,%d,%d,%d,%x,%d)\n",debugstr_a(pszTitle),dwStyle,x,y,width,height,hwndParent,nID );
+
+	return (HWND)NULL;
+}
+
+/***********************************************************************
+ *
+ *		capCreateCaptureWindowW (AVICAP.@)
+ *
+ */
+HWND WINAPI capCreateCaptureWindowW( LPCWSTR pwszTitle, DWORD dwStyle, int x, int y, int width, int height, HWND hwndParent, int nID )
+{
+	FIXME( "(%s,%lx,%d,%d,%d,%d,%x,%d)\n",debugstr_w(pwszTitle),dwStyle,x,y,width,height,hwndParent,nID );
+
+	return (HWND)NULL;
+}
+
+/***********************************************************************
+ *
+ *		capGetDriverDescriptionA (AVICAP.@)
+ *
+ */
+BOOL WINAPI capGetDriverDescriptionA( UINT uDriverIndex, LPSTR pszName, int cbName, LPSTR pszVersion, int cbVersion )
+{
+	FIXME( "(%u,%p,%d,%p,%d)\n",uDriverIndex,pszName,cbName,pszVersion,cbVersion );
+
+	return FALSE;
+}
+
+/***********************************************************************
+ *
+ *		capGetDriverDescriptionW (AVICAP.@)
+ *
+ */
+BOOL WINAPI capGetDriverDescriptionW( UINT uDriverIndex, LPWSTR pwszName, int cbName, LPWSTR pwszVersion, int cbVersion )
+{
+	FIXME( "(%u,%p,%d,%p,%d)\n",uDriverIndex,pwszName,cbName,pwszVersion,cbVersion );
+
+	return FALSE;
+}
+
-- 
GitLab