Unicodify the cookie handling code.
[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 <stdarg.h>
21
22 #include "windef.h"
23 #include "winbase.h"
24 #include "wingdi.h"
25 #include "winuser.h"
26 #include "vfw.h"
27 #include "winreg.h"
28 #include "winternl.h"
29 #include "wine/debug.h"
30
31 WINE_DEFAULT_DEBUG_CHANNEL(avicap);
32
33
34 /***********************************************************************
35  *             capCreateCaptureWindowW   (AVICAP32.@)
36  */
37 HWND VFWAPI capCreateCaptureWindowW(LPCWSTR lpszWindowName, DWORD dwStyle, INT x,
38                                     INT y, INT nWidth, INT nHeight, HWND hWnd,
39                                     INT nID)
40 {
41     FIXME("%s, %08lx, %08x, %08x, %08x, %08x, %p, %08x\n",
42            debugstr_w(lpszWindowName), dwStyle,
43            x, y, nWidth, nHeight, hWnd, nID);
44     return 0;
45 }
46
47 /***********************************************************************
48  *             capCreateCaptureWindowA   (AVICAP32.@)
49  */
50 HWND VFWAPI capCreateCaptureWindowA(LPCSTR lpszWindowName, DWORD dwStyle, INT x,
51                                     INT y, INT nWidth, INT nHeight, HWND hWnd,
52                                     INT nID)
53 {   UNICODE_STRING nameW;
54     HWND retW;
55
56     if (lpszWindowName) RtlCreateUnicodeStringFromAsciiz(&nameW, lpszWindowName);
57     else nameW.Buffer = NULL;
58
59     retW = capCreateCaptureWindowW(nameW.Buffer, dwStyle, x, y, nWidth, nHeight,
60                                    hWnd, nID);
61     RtlFreeUnicodeString(&nameW);
62
63     return retW;
64 }
65
66 /***********************************************************************
67  *             capGetDriverDescriptionA   (AVICAP32.@)
68  */
69 BOOL VFWAPI capGetDriverDescriptionA(WORD wDriverIndex, LPSTR lpszName,
70                                      INT cbName, LPSTR lpszVer, INT cbVer)
71 {
72     FIXME("(%d, %p, %d, %p, %d) stub!\n", wDriverIndex, lpszName, cbName,
73           lpszVer, cbVer);
74     return FALSE;
75 }
76
77 /***********************************************************************
78  *             capGetDriverDescriptionW   (AVICAP32.@)
79  */
80 BOOL VFWAPI capGetDriverDescriptionW(WORD wDriverIndex, LPWSTR lpszName,
81                                      INT cbName, LPWSTR lpszVer, INT cbVer)
82 {
83     FIXME("(%d, %p, %d, %p, %d) stub!\n", wDriverIndex, lpszName, cbName,
84           lpszVer, cbVer);
85     return FALSE;
86 }