ReactOS 0.4.17-dev-812-ged4f258
atl.c File Reference
#include <stdarg.h>
#include <stdio.h>
#include <windef.h>
#include <winbase.h>
#include <winuser.h>
#include <atlbase.h>
#include <mshtml.h>
#include <wine/test.h>
Include dependency graph for atl.c:

Go to the source code of this file.

Macros

#define COBJMACROS
 
#define CONST_VTABLE
 

Functions

static void test_ax_win (void)
 
 START_TEST (atl)
 

Macro Definition Documentation

◆ COBJMACROS

#define COBJMACROS

Definition at line 22 of file atl.c.

◆ CONST_VTABLE

#define CONST_VTABLE

Definition at line 23 of file atl.c.

Function Documentation

◆ START_TEST()

START_TEST ( atl  )

Definition at line 58 of file atl.c.

59{
61
63
65}
#define NULL
Definition: types.h:112
void WINAPI DECLSPEC_HOTPATCH CoUninitialize(void)
Definition: combase.c:2842
HRESULT WINAPI CoInitialize(LPVOID lpReserved)
Definition: compobj.c:531
static void test_ax_win(void)
Definition: atl.c:652

◆ test_ax_win()

static void test_ax_win ( void  )
static

Definition at line 34 of file atl.c.

35{
36 BOOL ret;
37 WNDCLASSEXW wcex;
38 static HMODULE hinstance = 0;
39
40 ret = AtlAxWinInit();
41 ok(ret, "AtlAxWinInit failed\n");
42
43 hinstance = GetModuleHandleA(NULL);
44
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);
50
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);
56}
#define ok(value,...)
Definition: atltest.h:57
BOOL WINAPI AtlAxWinInit(void)
Definition: atl_ax.c:86
HMODULE WINAPI DECLSPEC_HOTPATCH GetModuleHandleA(LPCSTR lpModuleName)
Definition: loader.c:812
return ret
Definition: mutex.c:147
#define L(x)
Definition: resources.c:13
unsigned int BOOL
Definition: ntddk_ex.h:94
#define memset(x, y, z)
Definition: compat.h:39
UINT cbSize
Definition: winuser.h:3324
UINT style
Definition: winuser.h:3325
#define CS_DBLCLKS
Definition: winuser.h:659
BOOL WINAPI GetClassInfoExW(_In_opt_ HINSTANCE, _In_ LPCWSTR, _Out_ LPWNDCLASSEXW)
#define CS_GLOBALCLASS
Definition: winuser.h:660