wined3d: Pass a wined3d_device_context to wined3d_cs_emit_blt_sub_resource().
[wine/zf.git] / dlls / atl80 / tests / atl.c
blob7ad11ce5c94cf9bc045f78ef4cbc524a1f6799f1
1 /*
2 * Copyright 2013 Qian Hong for CodeWeavers
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.
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.
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
19 #include <stdarg.h>
20 #include <stdio.h>
22 #define COBJMACROS
23 #define CONST_VTABLE
25 #include <windef.h>
26 #include <winbase.h>
27 #include <winuser.h>
29 #include <atlbase.h>
30 #include <mshtml.h>
32 #include <wine/test.h>
34 static void test_ax_win(void)
36 BOOL ret;
37 WNDCLASSEXW wcex;
38 static HMODULE hinstance = 0;
40 ret = AtlAxWinInit();
41 ok(ret, "AtlAxWinInit failed\n");
43 hinstance = GetModuleHandleA(NULL);
45 memset(&wcex, 0, sizeof(wcex));
46 wcex.cbSize = sizeof(wcex);
47 ret = GetClassInfoExW(hinstance, L"AtlAxWin80", &wcex);
48 ok(ret, "AtlAxWin80 has not registered\n");
49 ok(wcex.style == (CS_GLOBALCLASS | CS_DBLCLKS), "wcex.style %08x\n", wcex.style);
51 memset(&wcex, 0, sizeof(wcex));
52 wcex.cbSize = sizeof(wcex);
53 ret = GetClassInfoExW(hinstance, L"AtlAxWinLic80", &wcex);
54 ok(ret, "AtlAxWinLic80 has not registered\n");
55 ok(wcex.style == (CS_GLOBALCLASS | CS_DBLCLKS), "wcex.style %08x\n", wcex.style);
58 START_TEST(atl)
60 CoInitialize(NULL);
62 test_ax_win();
64 CoUninitialize();