ReactOS 0.4.15-dev-8348-gc1b9bb5
misc.c
Go to the documentation of this file.
1/*
2 * Misc tests
3 *
4 * Copyright 2006 Paul Vriens
5 *
6 * This library is free software; you can redistribute it and/or
7 * modify it under the terms of the GNU Lesser General Public
8 * License as published by the Free Software Foundation; either
9 * version 2.1 of the License, or (at your option) any later version.
10 *
11 * This library is distributed in the hope that it will be useful,
12 * but WITHOUT ANY WARRANTY; without even the implied warranty of
13 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
14 * Lesser General Public License for more details.
15 *
16 * You should have received a copy of the GNU Lesser General Public
17 * License along with this library; if not, write to the Free Software
18 * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301, USA
19 */
20
21#include <stdio.h>
22#include <windows.h>
23#include <commctrl.h>
24
25#include "wine/test.h"
26#include "v6util.h"
27
28static PVOID (WINAPI * pAlloc)(LONG);
29static PVOID (WINAPI * pReAlloc)(PVOID, LONG);
30static BOOL (WINAPI * pFree)(PVOID);
31static LONG (WINAPI * pGetSize)(PVOID);
32
33static INT (WINAPI * pStr_GetPtrA)(LPCSTR, LPSTR, INT);
34static BOOL (WINAPI * pStr_SetPtrA)(LPSTR, LPCSTR);
35static INT (WINAPI * pStr_GetPtrW)(LPCWSTR, LPWSTR, INT);
36static BOOL (WINAPI * pStr_SetPtrW)(LPWSTR, LPCWSTR);
37
38static HMODULE hComctl32 = 0;
39
40static char testicon_data[] =
41{
42 0x00, 0x00, 0x01, 0x00, 0x01, 0x00, 0x02, 0x02, 0x00, 0x00, 0x01, 0x00,
43 0x20, 0x00, 0x40, 0x00, 0x00, 0x00, 0x16, 0x00, 0x00, 0x00, 0x28, 0x00,
44 0x00, 0x00, 0x02, 0x00, 0x00, 0x00, 0x04, 0x00, 0x00, 0x00, 0x01, 0x00,
45 0x20, 0x00, 0x00, 0x00, 0x00, 0x00, 0x10, 0x00, 0x00, 0x00, 0x12, 0x0b,
46 0x00, 0x00, 0x12, 0x0b, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
47 0x00, 0x00, 0xde, 0xde, 0xde, 0xff, 0xde, 0xde, 0xde, 0xff, 0xde, 0xde,
48 0xde, 0xff, 0xde, 0xde, 0xde, 0xff, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
49 0x00, 0x00
50};
51
52#define COMCTL32_GET_PROC(ordinal, func) \
53 p ## func = (void*)GetProcAddress(hComctl32, (LPSTR)ordinal); \
54 if(!p ## func) { \
55 trace("GetProcAddress(%d)(%s) failed\n", ordinal, #func); \
56 FreeLibrary(hComctl32); \
57 }
58
60{
61 hComctl32 = LoadLibraryA("comctl32.dll");
62
63 if(!hComctl32)
64 {
65 trace("Could not load comctl32.dll\n");
66 return FALSE;
67 }
68
73
78
79 return TRUE;
80}
81
82static void test_GetPtrAW(void)
83{
84 if (pStr_GetPtrA)
85 {
86 static const char source[] = "Just a source string";
87 static const char desttest[] = "Just a destination string";
88 static char dest[MAX_PATH];
89 int sourcelen;
90 int destsize = MAX_PATH;
91 int count;
92
93 sourcelen = strlen(source) + 1;
94
95 count = pStr_GetPtrA(NULL, NULL, 0);
96 ok (count == 0, "Expected count to be 0, it was %d\n", count);
97
98 if (0)
99 {
100 /* Crashes on W98, NT4, W2K, XP, W2K3
101 * Our implementation also crashes and we should probably leave
102 * it like that.
103 */
104 count = pStr_GetPtrA(NULL, NULL, destsize);
105 trace("count : %d\n", count);
106 }
107
108 count = pStr_GetPtrA(source, NULL, 0);
109 ok (count == sourcelen ||
110 broken(count == sourcelen - 1), /* win9x */
111 "Expected count to be %d, it was %d\n", sourcelen, count);
112
113 strcpy(dest, desttest);
114 count = pStr_GetPtrA(source, dest, 0);
115 ok (count == sourcelen ||
116 broken(count == 0), /* win9x */
117 "Expected count to be %d, it was %d\n", sourcelen, count);
118 ok (!lstrcmpA(dest, desttest) ||
119 broken(!lstrcmpA(dest, "")), /* Win7 */
120 "Expected destination to not have changed\n");
121
122 count = pStr_GetPtrA(source, NULL, destsize);
123 ok (count == sourcelen ||
124 broken(count == sourcelen - 1), /* win9x */
125 "Expected count to be %d, it was %d\n", sourcelen, count);
126
127 count = pStr_GetPtrA(source, dest, destsize);
128 ok (count == sourcelen ||
129 broken(count == sourcelen - 1), /* win9x */
130 "Expected count to be %d, it was %d\n", sourcelen, count);
131 ok (!lstrcmpA(source, dest), "Expected source and destination to be the same\n");
132
133 strcpy(dest, desttest);
134 count = pStr_GetPtrA(NULL, dest, destsize);
135 ok (count == 0, "Expected count to be 0, it was %d\n", count);
136 ok (dest[0] == '\0', "Expected destination to be cut-off and 0 terminated\n");
137
138 destsize = 15;
139 count = pStr_GetPtrA(source, dest, destsize);
140 ok (count == 15 ||
141 broken(count == 14), /* win9x */
142 "Expected count to be 15, it was %d\n", count);
143 ok (!memcmp(source, dest, 14), "Expected first part of source and destination to be the same\n");
144 ok (dest[14] == '\0', "Expected destination to be cut-off and 0 terminated\n");
145 }
146}
147
148static void test_Alloc(void)
149{
150 PCHAR p;
151 BOOL res;
152 DWORD size, min;
153
154 /* allocate size 0 */
155 p = pAlloc(0);
156 ok(p != NULL, "Expected non-NULL ptr\n");
157
158 /* get the minimum size */
159 min = pGetSize(p);
160
161 /* free the block */
162 res = pFree(p);
163 ok(res == TRUE, "Expected TRUE, got %d\n", res);
164
165 /* allocate size 1 */
166 p = pAlloc(1);
167 ok(p != NULL, "Expected non-NULL ptr\n");
168
169 /* get the allocated size */
170 size = pGetSize(p);
171 ok(size == 1 ||
172 broken(size == min), /* win9x */
173 "Expected 1, got %d\n", size);
174
175 /* reallocate the block */
176 p = pReAlloc(p, 2);
177 ok(p != NULL, "Expected non-NULL ptr\n");
178
179 /* get the new size */
180 size = pGetSize(p);
181 ok(size == 2 ||
182 broken(size == min), /* win9x */
183 "Expected 2, got %d\n", size);
184
185 /* free the block */
186 res = pFree(p);
187 ok(res == TRUE, "Expected TRUE, got %d\n", res);
188
189 /* free a NULL ptr */
190 res = pFree(NULL);
191 ok(res == TRUE ||
192 broken(res == FALSE), /* win9x */
193 "Expected TRUE, got %d\n", res);
194
195 /* reallocate a NULL ptr */
196 p = pReAlloc(NULL, 2);
197 ok(p != NULL, "Expected non-NULL ptr\n");
198
199 res = pFree(p);
200 ok(res == TRUE, "Expected TRUE, got %d\n", res);
201}
202
204{
205 static const WCHAR nonexisting_fileW[] = {'n','o','n','e','x','i','s','t','i','n','g','.','i','c','o',0};
206 static const WCHAR nonexisting_resourceW[] = {'N','o','n','e','x','i','s','t','i','n','g',0};
207 static const WCHAR prefixW[] = {'I','C','O',0};
208 HRESULT (WINAPI *pLoadIconMetric)(HINSTANCE, const WCHAR *, int, HICON *);
209 HRESULT (WINAPI *pLoadIconWithScaleDown)(HINSTANCE, const WCHAR *, int, int, HICON *);
210 WCHAR tmp_path[MAX_PATH], icon_path[MAX_PATH];
214 DWORD written;
215 HRESULT hr;
216 BITMAP bmp;
217 HICON icon;
218 void *ptr;
219 int bytes;
220 BOOL res;
221
222 hinst = LoadLibraryA("comctl32.dll");
223 pLoadIconMetric = (void *)GetProcAddress(hinst, "LoadIconMetric");
224 pLoadIconWithScaleDown = (void *)GetProcAddress(hinst, "LoadIconWithScaleDown");
225 if (!pLoadIconMetric || !pLoadIconWithScaleDown)
226 {
227#ifdef __REACTOS__
228 skip("LoadIconMetric or pLoadIconWithScaleDown not exported by name\n");
229#else
230 win_skip("LoadIconMetric or pLoadIconWithScaleDown not exported by name\n");
231#endif
233 return;
234 }
235
236 GetTempPathW(MAX_PATH, tmp_path);
237 GetTempFileNameW(tmp_path, prefixW, 0, icon_path);
240 ok(handle != INVALID_HANDLE_VALUE, "CreateFileW failed with error %u\n", GetLastError());
241 res = WriteFile(handle, testicon_data, sizeof(testicon_data), &written, NULL);
242 ok(res && written == sizeof(testicon_data), "Failed to write icon file\n");
244
245 /* test ordinals */
246 ptr = GetProcAddress(hinst, (const char *)380);
247 ok(ptr == pLoadIconMetric,
248 "got wrong pointer for ordinal 380, %p expected %p\n", ptr, pLoadIconMetric);
249
250 ptr = GetProcAddress(hinst, (const char *)381);
251 ok(ptr == pLoadIconWithScaleDown,
252 "got wrong pointer for ordinal 381, %p expected %p\n", ptr, pLoadIconWithScaleDown);
253
254 /* invalid arguments */
255 icon = (HICON)0x1234;
256 hr = pLoadIconMetric(NULL, (LPWSTR)IDI_APPLICATION, 0x100, &icon);
257 ok(hr == E_INVALIDARG, "Expected E_INVALIDARG, got %x\n", hr);
258 ok(icon == NULL, "Expected NULL, got %p\n", icon);
259
260 icon = (HICON)0x1234;
261 hr = pLoadIconMetric(NULL, NULL, LIM_LARGE, &icon);
262 ok(hr == E_INVALIDARG, "Expected E_INVALIDARG, got %x\n", hr);
263 ok(icon == NULL, "Expected NULL, got %p\n", icon);
264
265 icon = (HICON)0x1234;
266 hr = pLoadIconWithScaleDown(NULL, NULL, 32, 32, &icon);
267 ok(hr == E_INVALIDARG, "Expected E_INVALIDARG, got %x\n", hr);
268 ok(icon == NULL, "Expected NULL, got %p\n", icon);
269
270 /* non-existing filename */
271 hr = pLoadIconMetric(NULL, nonexisting_fileW, LIM_LARGE, &icon);
273 "Expected HRESULT_FROM_WIN32(ERROR_RESOURCE_TYPE_NOT_FOUND), got %x\n", hr);
274
275 hr = pLoadIconWithScaleDown(NULL, nonexisting_fileW, 32, 32, &icon);
278 "Expected HRESULT_FROM_WIN32(ERROR_RESOURCE_TYPE_NOT_FOUND), got %x\n", hr);
279
280 /* non-existing resource name */
281 hr = pLoadIconMetric(hinst, nonexisting_resourceW, LIM_LARGE, &icon);
283 "Expected HRESULT_FROM_WIN32(ERROR_RESOURCE_TYPE_NOT_FOUND), got %x\n", hr);
284
285 hr = pLoadIconWithScaleDown(hinst, nonexisting_resourceW, 32, 32, &icon);
287 "Expected HRESULT_FROM_WIN32(ERROR_RESOURCE_TYPE_NOT_FOUND), got %x\n", hr);
288
289 /* load icon using predefined identifier */
290 hr = pLoadIconMetric(NULL, (LPWSTR)IDI_APPLICATION, LIM_SMALL, &icon);
291 ok(hr == S_OK, "Expected S_OK, got %x\n", hr);
292 res = GetIconInfo(icon, &info);
293 ok(res, "Failed to get icon info, error %u\n", GetLastError());
294 bytes = GetObjectA(info.hbmColor, sizeof(bmp), &bmp);
295 ok(bytes > 0, "Failed to get bitmap info for icon\n");
296 ok(bmp.bmWidth == GetSystemMetrics(SM_CXSMICON), "Wrong icon width %d\n", bmp.bmWidth);
297 ok(bmp.bmHeight == GetSystemMetrics(SM_CYSMICON), "Wrong icon height %d\n", bmp.bmHeight);
298 DestroyIcon(icon);
299
300 hr = pLoadIconMetric(NULL, (LPWSTR)IDI_APPLICATION, LIM_LARGE, &icon);
301 ok(hr == S_OK, "Expected S_OK, got %x\n", hr);
302 res = GetIconInfo(icon, &info);
303 ok(res, "Failed to get icon info, error %u\n", GetLastError());
304 bytes = GetObjectA(info.hbmColor, sizeof(bmp), &bmp);
305 ok(bytes > 0, "Failed to get bitmap info for icon\n");
306 ok(bmp.bmWidth == GetSystemMetrics(SM_CXICON), "Wrong icon width %d\n", bmp.bmWidth);
307 ok(bmp.bmHeight == GetSystemMetrics(SM_CYICON), "Wrong icon height %d\n", bmp.bmHeight);
308 DestroyIcon(icon);
309
310 hr = pLoadIconWithScaleDown(NULL, (LPWSTR)IDI_APPLICATION, 42, 42, &icon);
311 ok(hr == S_OK, "Expected S_OK, got %x\n", hr);
312 res = GetIconInfo(icon, &info);
313 ok(res, "Failed to get icon info, error %u\n", GetLastError());
314 bytes = GetObjectA(info.hbmColor, sizeof(bmp), &bmp);
315 ok(bytes > 0, "Failed to get bitmap info for icon\n");
316 ok(bmp.bmWidth == 42, "Wrong icon width %d\n", bmp.bmWidth);
317 ok(bmp.bmHeight == 42, "Wrong icon height %d\n", bmp.bmHeight);
318 DestroyIcon(icon);
319
320 /* load icon from file */
321 hr = pLoadIconMetric(NULL, icon_path, LIM_SMALL, &icon);
322 ok(hr == S_OK, "Expected S_OK, got %x\n", hr);
323 res = GetIconInfo(icon, &info);
324 ok(res, "Failed to get icon info, error %u\n", GetLastError());
325 bytes = GetObjectA(info.hbmColor, sizeof(bmp), &bmp);
326 ok(bytes > 0, "Failed to get bitmap info for icon\n");
327 ok(bmp.bmWidth == GetSystemMetrics(SM_CXSMICON), "Wrong icon width %d\n", bmp.bmWidth);
328 ok(bmp.bmHeight == GetSystemMetrics(SM_CYSMICON), "Wrong icon height %d\n", bmp.bmHeight);
329 DestroyIcon(icon);
330
331 hr = pLoadIconWithScaleDown(NULL, icon_path, 42, 42, &icon);
332 ok(hr == S_OK, "Expected S_OK, got %x\n", hr);
333 res = GetIconInfo(icon, &info);
334 ok(res, "Failed to get icon info, error %u\n", GetLastError());
335 bytes = GetObjectA(info.hbmColor, sizeof(bmp), &bmp);
336 ok(bytes > 0, "Failed to get bitmap info for icon\n");
337 ok(bmp.bmWidth == 42, "Wrong icon width %d\n", bmp.bmWidth);
338 ok(bmp.bmHeight == 42, "Wrong icon height %d\n", bmp.bmHeight);
339 DestroyIcon(icon);
340
341 DeleteFileW(icon_path);
343}
344
345static void check_class( const char *name, int must_exist, UINT style, UINT ignore, BOOL v6 )
346{
347 WNDCLASSA wc;
348
349 if (GetClassInfoA( 0, name, &wc ))
350 {
351 char buff[64];
352 HWND hwnd;
353
354todo_wine_if(!strcmp(name, "SysLink") && !must_exist && !v6)
355 ok( must_exist, "System class %s should %sexist\n", name, must_exist ? "" : "NOT " );
356 if (!must_exist) return;
357
358todo_wine_if(!strcmp(name, "ScrollBar") || (!strcmp(name, "tooltips_class32") && v6))
359 ok( !(~wc.style & style & ~ignore), "System class %s is missing bits %x (%08x/%08x)\n",
360 name, ~wc.style & style, wc.style, style );
361todo_wine_if((!strcmp(name, "tooltips_class32") && v6) || !strcmp(name, "SysLink"))
362 ok( !(wc.style & ~style), "System class %s has extra bits %x (%08x/%08x)\n",
363 name, wc.style & ~style, wc.style, style );
364 ok( !wc.hInstance, "System class %s has hInstance %p\n", name, wc.hInstance );
365
366 hwnd = CreateWindowA(name, 0, 0, 0, 0, 0, 0, 0, NULL, GetModuleHandleA(NULL), 0);
367 ok( hwnd != NULL, "Failed to create window for class %s.\n", name );
369 ok( !strcmp(name, buff), "Unexpected class name %s, expected %s.\n", buff, name );
371 }
372 else
373 ok( !must_exist, "System class %s does not exist\n", name );
374}
375
376/* test styles of system classes */
377static void test_builtin_classes(void)
378{
379 /* check style bits */
383 check_class( "ListBox", 1, CS_PARENTDC | CS_DBLCLKS | CS_GLOBALCLASS, 0, FALSE );
385 check_class( "Static", 1, CS_PARENTDC | CS_DBLCLKS | CS_GLOBALCLASS, 0, FALSE );
387}
388
390{
406 if (v6)
408 else
413 check_class("SysLink", v6, CS_GLOBALCLASS, 0, FALSE);
414}
415
417{
418 ULONG_PTR ctx_cookie;
419 HANDLE hCtx;
420
421 if(!InitFunctionPtrs())
422 return;
423
425 test_Alloc();
426
428
429 if (!load_v6_module(&ctx_cookie, &hCtx))
430 return;
431
435
436 unload_v6_module(ctx_cookie, hCtx);
437}
#define broken(x)
Definition: _sntprintf.h:21
int strcmp(const char *String1, const char *String2)
Definition: utclib.c:469
int memcmp(void *Buffer1, void *Buffer2, ACPI_SIZE Count)
Definition: utclib.c:112
ACPI_SIZE strlen(const char *String)
Definition: utclib.c:269
char * strcpy(char *DstString, const char *SrcString)
Definition: utclib.c:388
static unsigned char bytes[4]
Definition: adnsresfilter.c:74
Arabic default style
Definition: afstyles.h:94
#define trace
Definition: atltest.h:70
#define ok(value,...)
Definition: atltest.h:57
#define skip(...)
Definition: atltest.h:64
#define START_TEST(x)
Definition: atltest.h:75
#define ARRAY_SIZE(A)
Definition: main.h:33
PVOID ReAlloc(IN DWORD dwFlags, IN PVOID lpMem, IN SIZE_T dwBytes)
Definition: main.c:76
PVOID Alloc(IN DWORD dwFlags, IN SIZE_T dwBytes)
Definition: main.c:63
DWORD WINAPI GetSize(LPVOID)
INT WINAPI Str_GetPtrA(LPCSTR, LPSTR, INT)
Definition: string.c:136
INT WINAPI Str_GetPtrW(LPCWSTR, LPWSTR, INT)
Definition: string.c:204
#define E_INVALIDARG
Definition: ddrawi.h:101
#define NULL
Definition: types.h:112
#define TRUE
Definition: types.h:120
#define FALSE
Definition: types.h:117
BOOL WINAPI Str_SetPtrW(LPWSTR *lppDest, LPCWSTR lpSrc)
Definition: string.c:236
BOOL WINAPI Str_SetPtrA(LPSTR *lppDest, LPCSTR lpSrc)
Definition: string.c:180
#define CloseHandle
Definition: compat.h:739
#define GetProcAddress(x, y)
Definition: compat.h:753
#define INVALID_HANDLE_VALUE
Definition: compat.h:731
#define FreeLibrary(x)
Definition: compat.h:748
#define GENERIC_READ
Definition: compat.h:135
#define MAX_PATH
Definition: compat.h:34
#define CreateFileW
Definition: compat.h:741
#define FILE_ATTRIBUTE_NORMAL
Definition: compat.h:137
BOOL WINAPI DeleteFileW(IN LPCWSTR lpFileName)
Definition: delete.c:39
BOOL WINAPI WriteFile(IN HANDLE hFile, IN LPCVOID lpBuffer, IN DWORD nNumberOfBytesToWrite OPTIONAL, OUT LPDWORD lpNumberOfBytesWritten, IN LPOVERLAPPED lpOverlapped OPTIONAL)
Definition: rw.c:24
HMODULE WINAPI DECLSPEC_HOTPATCH GetModuleHandleA(LPCSTR lpModuleName)
Definition: loader.c:812
HINSTANCE WINAPI DECLSPEC_HOTPATCH LoadLibraryA(LPCSTR lpLibFileName)
Definition: loader.c:111
DWORD WINAPI GetTempPathW(IN DWORD count, OUT LPWSTR path)
Definition: path.c:2080
int WINAPI lstrcmpA(LPCSTR str1, LPCSTR str2)
Definition: locale.c:4194
unsigned int(__cdecl typeof(jpeg_read_scanlines))(struct jpeg_decompress_struct *
Definition: typeof.h:31
static unsigned char buff[32768]
Definition: fatten.c:17
UINT WINAPI GetTempFileNameW(IN LPCWSTR lpPathName, IN LPCWSTR lpPrefixString, IN UINT uUnique, OUT LPWSTR lpTempFileName)
Definition: filename.c:84
unsigned int BOOL
Definition: ntddk_ex.h:94
unsigned long DWORD
Definition: ntddk_ex.h:95
GLuint GLuint GLsizei count
Definition: gl.h:1545
GLsizeiptr size
Definition: glext.h:5919
GLuint res
Definition: glext.h:9613
GLfloat GLfloat p
Definition: glext.h:8902
#define S_OK
Definition: intsafe.h:52
#define CREATE_ALWAYS
Definition: disk.h:72
#define ERROR_FILE_NOT_FOUND
Definition: disk.h:79
static PVOID ptr
Definition: dispmode.c:27
BITMAP bmp
Definition: alphablend.c:62
static HINSTANCE hinst
Definition: edit.c:551
static HICON
Definition: imagelist.c:84
static void test_GetPtrAW(void)
Definition: misc.c:82
static LPSTR
Definition: misc.c:33
static void test_Alloc(void)
Definition: misc.c:148
static INT
Definition: misc.c:33
static void test_builtin_classes(void)
Definition: misc.c:377
static void test_LoadIconWithScaleDown(void)
Definition: misc.c:203
#define COMCTL32_GET_PROC(ordinal, func)
Definition: misc.c:52
static LPCWSTR
Definition: misc.c:36
static BOOL InitFunctionPtrs(void)
Definition: misc.c:59
static LPCSTR
Definition: misc.c:34
static LONG
Definition: misc.c:29
static char testicon_data[]
Definition: misc.c:40
static HMODULE hComctl32
Definition: misc.c:38
#define todo_wine_if(is_todo)
Definition: custom.c:76
#define todo_wine
Definition: custom.c:79
static char * dest
Definition: rtl.c:135
static void test_comctl32_classes(void)
Definition: class.c:1208
#define check_class(inst, name, menu)
Definition: class.c:289
#define min(a, b)
Definition: monoChain.cc:55
unsigned int UINT
Definition: ndis.h:50
#define BOOL
Definition: nt_native.h:43
#define GENERIC_WRITE
Definition: nt_native.h:90
@ LIM_LARGE
Definition: commctrl.h:5249
@ LIM_SMALL
Definition: commctrl.h:5248
#define WC_LISTVIEWA
Definition: commctrl.h:2256
#define WC_HEADERA
Definition: commctrl.h:623
#define UPDOWN_CLASSA
Definition: commctrl.h:2118
#define WC_PAGESCROLLERA
Definition: commctrl.h:4498
#define TRACKBAR_CLASSA
Definition: commctrl.h:2010
#define WC_COMBOBOXEXA
Definition: commctrl.h:3782
#define WC_TABCONTROLA
Definition: commctrl.h:3934
#define WC_TREEVIEWA
Definition: commctrl.h:3242
#define TOOLTIPS_CLASSA
Definition: commctrl.h:1708
#define REBARCLASSNAMEA
Definition: commctrl.h:1464
#define PROGRESS_CLASSA
Definition: commctrl.h:2175
#define WC_IPADDRESSA
Definition: commctrl.h:4473
#define STATUSCLASSNAMEA
Definition: commctrl.h:1937
#define WC_NATIVEFONTCTLA
Definition: commctrl.h:4607
#define DATETIMEPICK_CLASSA
Definition: commctrl.h:4323
#define ANIMATE_CLASSA
Definition: commctrl.h:4142
#define HOTKEY_CLASSA
Definition: commctrl.h:2235
#define MONTHCAL_CLASSA
Definition: commctrl.h:4176
#define TOOLBARCLASSNAMEA
Definition: commctrl.h:944
#define win_skip
Definition: test.h:163
HRESULT hr
Definition: shlfolder.c:183
Definition: bl.h:1331
HINSTANCE hInstance
Definition: winuser.h:3167
UINT style
Definition: winuser.h:3163
Definition: name.c:39
HANDLE HINSTANCE
Definition: typedefs.h:77
void * PVOID
Definition: typedefs.h:50
uint32_t ULONG_PTR
Definition: typedefs.h:65
char * PCHAR
Definition: typedefs.h:51
static BOOL load_v6_module(ULONG_PTR *pcookie, HANDLE *hCtx)
Definition: v6util.h:71
static void unload_v6_module(ULONG_PTR cookie, HANDLE hCtx)
Definition: v6util.h:63
DWORD WINAPI GetLastError(void)
Definition: except.c:1042
_In_ LONG _In_ HWND hwnd
Definition: winddi.h:4023
#define HRESULT
Definition: msvc.h:7
#define WINAPI
Definition: msvc.h:6
#define ERROR_RESOURCE_TYPE_NOT_FOUND
Definition: winerror.h:1120
#define HRESULT_FROM_WIN32(x)
Definition: winerror.h:92
int WINAPI GetObjectA(_In_ HANDLE h, _In_ int c, _Out_writes_bytes_opt_(c) LPVOID pv)
#define CS_DROPSHADOW
Definition: winuser.h:660
#define CS_VREDRAW
Definition: winuser.h:658
BOOL WINAPI GetIconInfo(_In_ HICON, _Out_ PICONINFO)
Definition: cursoricon.c:2089
#define CreateWindowA(a, b, c, d, e, f, g, h, i, j, k)
Definition: winuser.h:4315
int WINAPI GetClassNameA(_In_ HWND hWnd, _Out_writes_to_(nMaxCount, return) LPSTR lpClassName, _In_ int nMaxCount)
#define CS_HREDRAW
Definition: winuser.h:653
#define SM_CYSMICON
Definition: winuser.h:1013
#define CS_DBLCLKS
Definition: winuser.h:651
#define IDI_APPLICATION
Definition: winuser.h:704
#define SM_CXSMICON
Definition: winuser.h:1012
#define SM_CYICON
Definition: winuser.h:973
BOOL WINAPI GetClassInfoA(_In_opt_ HINSTANCE, _In_ LPCSTR, _Out_ LPWNDCLASSA)
#define CS_GLOBALCLASS
Definition: winuser.h:652
#define CS_SAVEBITS
Definition: winuser.h:657
#define CS_PARENTDC
Definition: winuser.h:656
#define SM_CXICON
Definition: winuser.h:972
BOOL WINAPI DestroyWindow(_In_ HWND)
int WINAPI GetSystemMetrics(_In_ int)
BOOL WINAPI DestroyIcon(_In_ HICON)
Definition: cursoricon.c:2097
_In_opt_ PALLOCATE_FUNCTION _In_opt_ PFREE_FUNCTION Free
Definition: exfuncs.h:815
__wchar_t WCHAR
Definition: xmlstorage.h:180
WCHAR * LPWSTR
Definition: xmlstorage.h:184