31 IProgressDialog *dlg2;
36 hr =
CoCreateInstance(&CLSID_ProgressDialog,
NULL, CLSCTX_INPROC_SERVER, &IID_IProgressDialog, (
void*)&dlg);
38 win_skip(
"CoCreateInstance for IProgressDialog returned 0x%x\n",
hr);
46 ok(
hr ==
S_OK,
"QueryInterface (IUnknown) returned 0x%x\n",
hr);
48 IUnknown_Release(unk);
52 ok(
hr ==
S_OK,
"QueryInterface (IOleWindow) returned 0x%x\n",
hr);
54 hr = IOleWindow_QueryInterface(olewindow, &IID_IProgressDialog, (
void**)&dlg2);
55 ok(
hr ==
S_OK,
"QueryInterface (IProgressDialog) returned 0x%x\n",
hr);
59 IOleWindow_Release(olewindow);
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)
const GUID IID_IOleWindow
static void test_IProgressDialog_QueryInterface(void)
#define IProgressDialog_QueryInterface(p, a, b)
#define IProgressDialog_Release(p)