Correct device capabilites including support in previous patch, as
[wine] / dlls / avicap32 / avicap32_main.c
1 /*
2  * Copyright 2002 Dmitry Timoshkov for Codeweavers
3  *
4  * This library is free software; you can redistribute it and/or
5  * modify it under the terms of the GNU Lesser General Public
6  * License as published by the Free Software Foundation; either
7  * version 2.1 of the License, or (at your option) any later version.
8  *
9  * This library is distributed in the hope that it will be useful,
10  * but WITHOUT ANY WARRANTY; without even the implied warranty of
11  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
12  * Lesser General Public License for more details.
13  *
14  * You should have received a copy of the GNU Lesser General Public
15  * License along with this library; if not, write to the Free Software
16  * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA  02111-1307  USA
17  */
18
19 #define COM_NO_WINDOWS_H
20 #include "vfw.h"
21 #include "winternl.h"
22 #include "wine/debug.h"
23
24 WINE_DEFAULT_DEBUG_CHANNEL(avicap);
25
26
27 /***********************************************************************
28  *             capCreateCaptureWindowW   (AVICAP32.@)
29  */
30 HWND VFWAPI capCreateCaptureWindowW(LPCWSTR lpszWindowName, DWORD dwStyle, INT x,
31                                     INT y, INT nWidth, INT nHeight, HWND hWnd,
32                                     INT nID)
33 {
34     FIXME("%s, %08lx, %08x, %08x, %08x, %08x, %p, %08x\n",
35            debugstr_w(lpszWindowName), dwStyle,
36            x, y, nWidth, nHeight, hWnd, nID);
37     return 0;
38 }
39
40 /***********************************************************************
41  *             capCreateCaptureWindowA   (AVICAP32.@)
42  */
43 HWND VFWAPI capCreateCaptureWindowA(LPCSTR lpszWindowName, DWORD dwStyle, INT x,
44                                     INT y, INT nWidth, INT nHeight, HWND hWnd,
45                                     INT nID)
46 {   UNICODE_STRING nameW;
47     HWND retW;
48
49     if (lpszWindowName) RtlCreateUnicodeStringFromAsciiz(&nameW, lpszWindowName);
50     else nameW.Buffer = NULL;
51
52     retW = capCreateCaptureWindowW(nameW.Buffer, dwStyle, x, y, nWidth, nHeight,
53                                    hWnd, nID);
54     RtlFreeUnicodeString(&nameW);
55
56     return retW;
57 }
58
59 /***********************************************************************
60  *             capGetDriverDescriptionA   (AVICAP32.@)
61  */
62 BOOL VFWAPI capGetDriverDescriptionA(WORD wDriverIndex, LPSTR lpszName,
63                                      INT cbName, LPSTR lpszVer, INT cbVer)
64 {
65     FIXME("(%d, %p, %d, %p, %d) stub!\n", wDriverIndex, lpszName, cbName,
66           lpszVer, cbVer);
67     return FALSE;
68 }
69
70 /***********************************************************************
71  *             capGetDriverDescriptionW   (AVICAP32.@)
72  */
73 BOOL VFWAPI capGetDriverDescriptionW(WORD wDriverIndex, LPWSTR lpszName,
74                                      INT cbName, LPWSTR lpszVer, INT cbVer)
75 {
76     FIXME("(%d, %p, %d, %p, %d) stub!\n", wDriverIndex, lpszName, cbName,
77           lpszVer, cbVer);
78     return FALSE;
79 }