Commit c02bf881 authored by Qian Hong's avatar Qian Hong Committed by Alexandre Julliard

atl100/tests: Added class name test for AtlAxWinInit.

parent c61df085
TESTDLL = atl100.dll
IMPORTS = uuid atl100 oleaut32 ole32 advapi32
IMPORTS = uuid atl100 oleaut32 ole32 advapi32 user32
EXTRADEFS = -D_ATL_VER=_ATL_VER_100
C_SRCS = \
......
......@@ -22,6 +22,10 @@
#define COBJMACROS
#define CONST_VTABLE
#include <windef.h>
#include <winbase.h>
#include <winuser.h>
#include <atlbase.h>
#include <mshtml.h>
......@@ -562,6 +566,30 @@ static void test_source_iface(void)
ok(maj_ver == 4 && min_ver == 0, "ver = %d.%d\n", maj_ver, min_ver);
}
static void test_ax_win(void)
{
BOOL ret;
WNDCLASSEXW wcex;
static const WCHAR AtlAxWin100[] = {'A','t','l','A','x','W','i','n','1','0','0',0};
static const WCHAR AtlAxWinLic100[] = {'A','t','l','A','x','W','i','n','L','i','c','1','0','0',0};
static HMODULE hinstance = 0;
ret = AtlAxWinInit();
ok(ret, "AtlAxWinInit failed\n");
hinstance = GetModuleHandleA(NULL);
memset(&wcex, 0, sizeof(wcex));
wcex.cbSize = sizeof(wcex);
ret = GetClassInfoExW(hinstance, AtlAxWin100, &wcex);
todo_wine ok(ret, "AtlAxWin100 has not registered\n");
memset(&wcex, 0, sizeof(wcex));
wcex.cbSize = sizeof(wcex);
ret = GetClassInfoExW(hinstance, AtlAxWinLic100, &wcex);
todo_wine ok(ret, "AtlAxWinLic100 has not registered\n");
}
START_TEST(atl)
{
CoInitialize(NULL);
......@@ -571,6 +599,7 @@ START_TEST(atl)
test_typelib();
test_cp();
test_source_iface();
test_ax_win();
CoUninitialize();
}
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment