#include <stdarg.h>
#include <shlobj.h>
#include "wine/test.h"
Go to the source code of this file.
◆ COBJMACROS
◆ START_TEST()
START_TEST |
( |
progressdlg |
| ) |
|
Definition at line 65 of file progressdlg.c.
66{
68
70
72}
HRESULT WINAPI CoInitialize(LPVOID lpReserved)
void WINAPI DECLSPEC_HOTPATCH CoUninitialize(void)
static void test_IProgressDialog_QueryInterface(void)
◆ test_IProgressDialog_QueryInterface()
static void test_IProgressDialog_QueryInterface |
( |
void |
| ) |
|
|
static |
Definition at line 28 of file progressdlg.c.
29{
30 IProgressDialog *dlg;
31 IProgressDialog *dlg2;
35
36 hr =
CoCreateInstance(&CLSID_ProgressDialog,
NULL, CLSCTX_INPROC_SERVER, &IID_IProgressDialog, (
void*)&dlg);
38 win_skip(
"CoCreateInstance for IProgressDialog returned 0x%x\n",
hr);
39 return;
40 }
41
44
46 ok(
hr ==
S_OK,
"QueryInterface (IUnknown) returned 0x%x\n",
hr);
48 IUnknown_Release(unk);
49 }
50
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);
58 }
59 IOleWindow_Release(olewindow);
60 }
62}
HRESULT WINAPI DECLSPEC_HOTPATCH CoCreateInstance(REFCLSID rclsid, LPUNKNOWN pUnkOuter, DWORD dwClsContext, REFIID iid, LPVOID *ppv)
const GUID IID_IOleWindow
#define IProgressDialog_QueryInterface(p, a, b)
#define IProgressDialog_Release(p)
Referenced by START_TEST().