194 static const WCHAR xmlview_xmlW[] = {
'/',
'x',
'm',
'l',
'/',
'x',
'm',
'l',
'v',
'i',
'e',
'w',
'.',
'x',
'm',
'l',0};
195 static const WCHAR res[] = {
'r',
'e',
's',
':',
'/',
'/',0};
212 if(!pCreateURLMoniker) {
213 win_skip(
"CreateURLMoniker not available\n");
218 &IID_IPersistMoniker, (
void**)&pers_mon);
220 win_skip(
"Failed to create XMLView instance\n");
223 ok(
hres ==
S_OK,
"CoCreateInstance returned %x, expected S_OK\n",
hres);
225 hres = IPersistMoniker_QueryInterface(pers_mon, &IID_IHTMLDocument2, (
void**)&
html_doc);
226 ok(
hres ==
S_OK,
"QueryInterface(HTMLDocument2) returned %x, expected S_OK\n",
hres);
228 ok(
hres ==
S_OK,
"QueryInterface(IConnectionPointContainer) returned %x, expected S_OK\n",
hres);
230 ok(
hres ==
S_OK,
"FindConnectionPoint returned %x, expected S_OK\n",
hres);
233 IConnectionPoint_Release(
cp);
234 IConnectionPointContainer_Release(cpc);
237 ok(
hres ==
S_OK,
"CreateBindCtx returned %x, expected S_OK\n",
hres);
239 ok(
hres ==
S_OK,
"CreateUrlMoniker returned %x, expected S_OK\n",
hres);
241 hres = IPersistMoniker_Load(pers_mon,
TRUE, mon, bctx, 0);
243 IBindCtx_Release(bctx);
244 IMoniker_Release(mon);
254 ok(
hres ==
S_OK,
"get_outerHTML returned %x, expected S_OK\n",
hres);
256 IHTMLElement_Release(
elem);
261 IPersistMoniker_Release(pers_mon);
DWORD WINAPI GetModuleFileNameW(HINSTANCE hModule, LPWSTR lpFilename, DWORD nSize)
BOOL WINAPI TranslateMessage(_In_ const MSG *)
LRESULT WINAPI DispatchMessageA(_In_ const MSG *)
char * wine_dbgstr_w(const wchar_t *wstr)
TW_UINT32 TW_UINT16 TW_UINT16 MSG
const GUID IID_IConnectionPointContainer
BOOL WINAPI GetMessageA(_Out_ LPMSG, _In_opt_ HWND, _In_ UINT, _In_ UINT)
GLenum GLuint GLenum GLsizei const GLchar * buf
HRESULT WINAPI CreateBindCtx(DWORD reserved, LPBC *ppbc)
IHTMLDocument2 * html_doc
static IDispatch HTMLEvents
HRESULT WINAPI DECLSPEC_HOTPATCH CoCreateInstance(REFCLSID rclsid, LPUNKNOWN pUnkOuter, DWORD dwClsContext, REFIID iid, LPVOID *ppv)
static int html_src_compare(LPCWSTR strw, const char *stra)
GLsizei GLsizei GLchar * source
IMoniker **static const char xmlview_html[]
void WINAPI DECLSPEC_HOTPATCH SysFreeString(BSTR str)
LPWSTR WINAPI lstrcatW(LPWSTR lpString1, LPCWSTR lpString2)