46 pAtlAxAttachControl = (
void *)
GetProcAddress(hatl,
"AtlAxAttachControl");
76 ok(
hr ==
E_INVALIDARG,
"Expected AtlAxAttachControl to return E_INVALIDARG, got 0x%08x\n",
hr);
79 hr = pAtlAxAttachControl(
NULL,
NULL, &pContainer);
80 ok(
hr ==
E_INVALIDARG,
"Expected AtlAxAttachControl to return E_INVALIDARG, got 0x%08x\n",
hr);
82 "Expected the output container pointer to be untouched, got %p\n", pContainer);
85 ok(
hr ==
E_INVALIDARG,
"Expected AtlAxAttachControl to return E_INVALIDARG, got 0x%08x\n",
hr);
89 ok(
hr ==
S_OK,
"Expected CoCreateInstance to return S_OK, got 0x%08x\n",
hr);
93 skip(
"Couldn't obtain a test IOleObject instance\n");
98 ok(
hr ==
S_FALSE,
"Expected AtlAxAttachControl to return S_FALSE, got 0x%08x\n",
hr);
101 hr = pAtlAxAttachControl(pObj,
NULL, &pContainer);
102 ok(
hr ==
S_FALSE,
"Expected AtlAxAttachControl to return S_FALSE, got 0x%08x\n",
hr);
103 ok(pContainer !=
NULL,
"got %p\n", pContainer);
104 IUnknown_Release(pContainer);
107 ok(
hr ==
S_OK,
"Expected AtlAxAttachControl to return S_OK, got 0x%08x\n",
hr);
109 IUnknown_Release(pObj);
118 static const WCHAR AtlAxWin[] = {
'A',
't',
'l',
'A',
'x',
'W',
'i',
'n',0};
122 ok(
ret,
"AtlAxWinInit failed\n");
125 memset(&wcex, 0,
sizeof(wcex));
126 wcex.
cbSize =
sizeof(wcex);
128 ok(
ret,
"AtlAxWin has not registered\n");
141 if (pAtlAxAttachControl)
144 win_skip(
"AtlAxAttachControl is not available\n");
BOOL WINAPI AtlAxWinInit(void)
#define GetProcAddress(x, y)
HMODULE WINAPI DECLSPEC_HOTPATCH GetModuleHandleA(LPCSTR lpModuleName)
HRESULT WINAPI DECLSPEC_HOTPATCH CoCreateInstance(REFCLSID rclsid, LPUNKNOWN pUnkOuter, DWORD dwClsContext, REFIID iid, LPVOID *ppv)
HRESULT WINAPI CoInitialize(LPVOID lpReserved)
void WINAPI DECLSPEC_HOTPATCH CoUninitialize(void)
static IUnknown **static void init_function_pointers(void)
static ATOM register_class(void)
static void test_AtlAxAttachControl(void)
static void test_ax_win(void)
const GUID IID_IOleObject
LRESULT WINAPI DefWindowProcA(_In_ HWND, _In_ UINT, _In_ WPARAM, _In_ LPARAM)
#define CreateWindowA(a, b, c, d, e, f, g, h, i, j, k)
BOOL WINAPI GetClassInfoExW(_In_opt_ HINSTANCE, _In_ LPCWSTR, _Out_ LPWNDCLASSEXW)
ATOM WINAPI RegisterClassA(_In_ CONST WNDCLASSA *)
BOOL WINAPI DestroyWindow(_In_ HWND)
HCURSOR WINAPI LoadCursorA(_In_opt_ HINSTANCE, _In_ LPCSTR)