ReactOS 0.4.15-dev-7942-gd23573b
atl.c
Go to the documentation of this file.
1/*
2 * Copyright 2013 Qian Hong 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., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301, USA
17 */
18
19#include <stdarg.h>
20#include <stdio.h>
21
22#define COBJMACROS
23#define CONST_VTABLE
24
25#include <windef.h>
26#include <winbase.h>
27#include <winuser.h>
28
29#include <wine/atlbase.h>
30#include <mshtml.h>
31
32#include <wine/test.h>
33
34static void test_ax_win(void)
35{
36 BOOL ret;
37 WNDCLASSEXW wcex;
38 static const WCHAR AtlAxWin80[] = {'A','t','l','A','x','W','i','n','8','0',0};
39 static const WCHAR AtlAxWinLic80[] = {'A','t','l','A','x','W','i','n','L','i','c','8','0',0};
40 static HMODULE hinstance = 0;
41
42 ret = AtlAxWinInit();
43 ok(ret, "AtlAxWinInit failed\n");
44
45 hinstance = GetModuleHandleA(NULL);
46
47 memset(&wcex, 0, sizeof(wcex));
48 wcex.cbSize = sizeof(wcex);
49 ret = GetClassInfoExW(hinstance, AtlAxWin80, &wcex);
50 ok(ret, "AtlAxWin80 has not registered\n");
51 ok(wcex.style == (CS_GLOBALCLASS | CS_DBLCLKS), "wcex.style %08x\n", wcex.style);
52
53 memset(&wcex, 0, sizeof(wcex));
54 wcex.cbSize = sizeof(wcex);
55 ret = GetClassInfoExW(hinstance, AtlAxWinLic80, &wcex);
56 ok(ret, "AtlAxWinLic80 has not registered\n");
57 ok(wcex.style == (CS_GLOBALCLASS | CS_DBLCLKS), "wcex.style %08x\n", wcex.style);
58}
59
61{
63
65
67}
#define ok(value,...)
Definition: atltest.h:57
#define START_TEST(x)
Definition: atltest.h:75
#define NULL
Definition: types.h:112
BOOL WINAPI AtlAxWinInit(void)
Definition: atl_ax.c:89
HMODULE WINAPI DECLSPEC_HOTPATCH GetModuleHandleA(LPCSTR lpModuleName)
Definition: loader.c:812
HRESULT WINAPI CoInitialize(LPVOID lpReserved)
Definition: compobj.c:1964
void WINAPI DECLSPEC_HOTPATCH CoUninitialize(void)
Definition: compobj.c:2067
unsigned int BOOL
Definition: ntddk_ex.h:94
static void test_ax_win(void)
Definition: atl.c:669
#define memset(x, y, z)
Definition: compat.h:39
UINT cbSize
Definition: winuser.h:3216
UINT style
Definition: winuser.h:3217
int ret
#define CS_DBLCLKS
Definition: winuser.h:651
BOOL WINAPI GetClassInfoExW(_In_opt_ HINSTANCE, _In_ LPCWSTR, _Out_ LPWNDCLASSEXW)
#define CS_GLOBALCLASS
Definition: winuser.h:652
__wchar_t WCHAR
Definition: xmlstorage.h:180