40#define EXPECT_REF(node,ref) _expect_ref((IUnknown*)node, ref, __LINE__)
45 rc = IUnknown_Release(
obj);
46 ok_(__FILE__,
line)(rc ==
ref,
"expected refcount %ld, got %ld.\n",
ref, rc);
49#define check_interface(a, b, c) check_interface_(__LINE__, a, b, c)
58 hr = IUnknown_QueryInterface(iface, iid, (
void **)&unk);
59 ok_(__FILE__,
line)(
hr == expected_hr,
"Got hr %#lx, expected %#lx.\n",
hr, expected_hr);
61 IUnknown_Release(unk);
64static const char xmltestA[] =
"http://test.winehq.org/tests/xmltest.xml";
65static const CHAR xmltestbodyA[] =
"<?xml version=\"1.0\" encoding=\"utf-8\"?>\n<a>TEST</a>\n";
67DEFINE_GUID(SID_SContainerDispatch, 0xb722be00, 0x4e68, 0x101b, 0xa2, 0xbc, 0x00, 0xaa, 0x00, 0x40, 0x47, 0x70);
68DEFINE_GUID(SID_UnknownSID, 0x75dd09cb, 0x6c40, 0x11d5, 0x85, 0x43, 0x00, 0xc0, 0x4f, 0xa0, 0xfb, 0xa3);
72#define DEFINE_EXPECT(func) \
73 static BOOL expect_ ## func = FALSE, called_ ## func = FALSE
75#define SET_EXPECT(func) \
76 expect_ ## func = TRUE
78#define CHECK_EXPECT2(func) \
80 if (g_enablecallchecks) \
81 ok(expect_ ##func, "unexpected call " #func "\n"); \
82 called_ ## func = TRUE; \
85#define CHECK_CALLED(func) \
87 ok(called_ ## func, "expected " #func "\n"); \
88 expect_ ## func = called_ ## func = FALSE; \
148 ok(0,
"unexpected call\n");
165 ok(0,
"unexpected call\n");
172 ok(0,
"unexpected call\n");
180 ok(0,
"unexpected call\n");
186 VARIANT *pVarResult, EXCEPINFO *pExcepInfo,
UINT *puArgErr)
188 ok(0,
"unexpected call\n");
194 ok(0,
"unexpected call\n");
200 ok(0,
"unexpected call\n");
212 ok(0,
"unexpected call\n");
218 ok(0,
"unexpected call\n");
224 ok(0,
"unexpected call\n");
265 ok(0,
"unexpected call\n");
272 ok(0,
"unexpected call\n");
280 ok(0,
"unexpected call\n");
286 VARIANT *pVarResult, EXCEPINFO *pExcepInfo,
UINT *puArgErr)
288 ok(0,
"unexpected call\n");
294 ok(0,
"unexpected call\n");
307 ok(0,
"unexpected call\n");
313 ok(0,
"unexpected call\n");
319 ok(0,
"unexpected call\n");
325 ok(0,
"unexpected call\n");
331 ok(0,
"unexpected call\n");
337 ok(0,
"unexpected call\n");
343 ok(0,
"unexpected call\n");
349 ok(0,
"unexpected call\n");
355 ok(0,
"unexpected call\n");
361 ok(0,
"unexpected call\n");
367 ok(0,
"unexpected call\n");
373 ok(0,
"unexpected call\n");
379 ok(0,
"unexpected call\n");
385 ok(0,
"unexpected call\n");
391 ok(0,
"unexpected call\n");
397 ok(0,
"unexpected call\n");
403 ok(0,
"unexpected call\n");
409 ok(0,
"unexpected call\n");
415 ok(0,
"unexpected call\n");
421 ok(0,
"unexpected call\n");
427 ok(0,
"unexpected call\n");
433 ok(0,
"unexpected call\n");
439 ok(0,
"unexpected call\n");
445 ok(0,
"unexpected call\n");
451 ok(0,
"unexpected call\n");
457 ok(0,
"unexpected call\n");
463 ok(0,
"unexpected call\n");
469 ok(0,
"unexpected call\n");
475 ok(0,
"unexpected call\n");
481 ok(0,
"unexpected call\n");
487 ok(0,
"unexpected call\n");
500 ok(0,
"unexpected call\n");
506 ok(0,
"unexpected call\n");
512 ok(0,
"unexpected call\n");
518 ok(0,
"unexpected call\n");
524 ok(0,
"unexpected call\n");
530 ok(0,
"unexpected call\n");
536 ok(0,
"unexpected call\n");
542 ok(0,
"unexpected call\n");
548 ok(0,
"unexpected call\n");
554 ok(0,
"unexpected call\n");
560 ok(0,
"unexpected call\n");
566 ok(0,
"unexpected call\n");
572 ok(0,
"unexpected call\n");
578 ok(0,
"unexpected call\n");
584 ok(0,
"unexpected call\n");
590 ok(0,
"unexpected call\n");
596 ok(0,
"unexpected call\n");
602 ok(0,
"unexpected call\n");
608 ok(0,
"unexpected call\n");
614 ok(0,
"unexpected call\n");
621 ok(0,
"unexpected call\n");
627 ok(0,
"unexpected call\n");
633 ok(0,
"unexpected call\n");
640 ok(0,
"unexpected call\n");
647 ok(0,
"unexpected call\n");
654 ok(0,
"unexpected call\n");
661 ok(0,
"unexpected call\n");
668 ok(0,
"unexpected call\n");
675 ok(0,
"unexpected call\n");
682 ok(0,
"unexpected call\n");
689 ok(0,
"unexpected call\n");
694 IHTMLElement **newElem)
696 ok(0,
"unexpected call\n");
702 ok(0,
"unexpected call\n");
708 ok(0,
"unexpected call\n");
714 ok(0,
"unexpected call\n");
720 ok(0,
"unexpected call\n");
726 ok(0,
"unexpected call\n");
732 ok(0,
"unexpected call\n");
738 ok(0,
"unexpected call\n");
744 ok(0,
"unexpected call\n");
750 ok(0,
"unexpected call\n");
756 ok(0,
"unexpected call\n");
762 ok(0,
"unexpected call\n");
768 ok(0,
"unexpected call\n");
774 ok(0,
"unexpected call\n");
780 ok(0,
"unexpected call\n");
786 ok(0,
"unexpected call\n");
792 ok(0,
"unexpected call\n");
798 ok(0,
"unexpected call\n");
804 ok(0,
"unexpected call\n");
810 ok(0,
"unexpected call\n");
816 ok(0,
"unexpected call\n");
822 ok(0,
"unexpected call\n");
828 ok(0,
"unexpected call\n");
834 ok(0,
"unexpected call\n");
840 ok(0,
"unexpected call\n");
846 ok(0,
"unexpected call\n");
852 ok(0,
"unexpected call\n");
858 ok(0,
"unexpected call\n");
864 ok(0,
"unexpected call\n");
870 ok(0,
"unexpected call\n");
876 ok(0,
"unexpected call\n");
882 ok(0,
"unexpected call\n");
888 ok(0,
"unexpected call\n");
894 ok(0,
"unexpected call\n");
900 ok(0,
"unexpected call\n");
905 IHTMLElement **elementHit)
907 ok(0,
"unexpected call\n");
913 ok(0,
"unexpected call\n");
918 IHTMLStyleSheetsCollection **
p)
920 ok(0,
"unexpected call\n");
926 ok(0,
"unexpected call\n");
932 ok(0,
"unexpected call\n");
938 ok(0,
"unexpected call\n");
944 ok(0,
"unexpected call\n");
950 ok(0,
"unexpected call\n");
955 LONG lIndex, IHTMLStyleSheet **ppnewStyleSheet)
957 ok(0,
"unexpected call\n");
1090 IServiceProvider_AddRef(iface);
1118 else if (
IsEqualGUID(service, &SID_SContainerDispatch) &&
1121 CHECK_EXPECT2(sp_queryservice_SID_SContainerDispatch_htmldoc2);
1123 else if (
IsEqualGUID(service, &SID_SInternetHostSecurityManager) &&
1130 else if (
IsEqualGUID(service, &SID_SInternetHostSecurityManager) &&
1135 else if (
IsEqualGUID(service, &SID_SInternetHostSecurityManager) &&
1186 if (*ppvObject) IUnknown_AddRef(iface);
1235 IDispatch_AddRef( iface );
1280 EXCEPINFO *excepInfo,
UINT *argErr)
1295 ok(excepInfo ==
NULL,
"got %p\n", excepInfo);
1296 ok(argErr ==
NULL,
"got %p\n", argErr);
1300 state = READYSTATE_UNINITIALIZED;
1303 if (
state == READYSTATE_COMPLETE)
1333 return &
event->IDispatch_iface;
1342 &IID_IXMLHttpRequest, (
void**)&
ret);
1349 IServerXMLHTTPRequest *
ret;
1362 hr = IUnknown_QueryInterface(unk, &IID_IObjectSafety, (
void**)&obj_safety);
1368 IObjectSafety_Release(obj_safety);
1383 SET_EXPECT(sp_queryservice_SID_SContainerDispatch_htmldoc2);
1384 SET_EXPECT(sp_queryservice_SID_secmgr_htmldoc2);
1385 SET_EXPECT(sp_queryservice_SID_secmgr_xmldomdoc);
1386 SET_EXPECT(sp_queryservice_SID_secmgr_secmgr);
1396 hr = IObjectWithSite_SetSite(obj_site, &
testsite);
1402 CHECK_CALLED(sp_queryservice_SID_SContainerDispatch_htmldoc2);
1421 IObjectWithSite_Release(obj_site);
1424#define test_open(a,b,c,d) _test_open(__LINE__,a,b,c,d)
1432 V_BOOL(&vfalse) = VARIANT_FALSE;
1435 ok_(__FILE__,
line)(
hr == exhres,
"open(%s %s) failed: %#lx, expected %#lx.\n",
method,
url,
hr, exhres);
1438#define test_server_open(a,b,c,d) _test_server_open(__LINE__,a,b,c,d)
1446 V_BOOL(&vfalse) = VARIANT_FALSE;
1449 ok_(__FILE__,
line)(
hr == exhres,
"open(%s %s) failed: %#lx, expected %#lx.\n",
method,
url,
hr, exhres);
1454 static const char bodyA[] =
"mode=Test";
1455 static const char urlA[] =
"http://test.winehq.org/tests/post.php";
1456 static const char referertesturl[] =
"http://test.winehq.org/tests/referer.php";
1479 hr = IXMLHttpRequest_put_onreadystatechange(
xhr,
NULL);
1482 hr = IXMLHttpRequest_abort(
xhr);
1487 hr = IXMLHttpRequest_get_responseBody(
xhr, &varbody);
1493 hr = IXMLHttpRequest_get_responseStream(
xhr, &varbody);
1502 hr = IXMLHttpRequest_get_status(
xhr,
NULL);
1510 hr = IXMLHttpRequest_get_statusText(
xhr, &
str);
1527 hr = IXMLHttpRequest_setRequestHeader(
xhr,
_bstr_(
"header1"),
_bstr_(
"value1"));
1530 hr = IXMLHttpRequest_get_readyState(
xhr,
NULL);
1534 hr = IXMLHttpRequest_get_readyState(
xhr, &
state);
1536 ok(
state == READYSTATE_UNINITIALIZED,
"Unexpected state %ld.\n",
state);
1542 hr = IXMLHttpRequest_put_onreadystatechange(
xhr,
event);
1560 hr = IXMLHttpRequest_get_readyState(
xhr, &
state);
1562 ok(
state == READYSTATE_LOADING,
"Unexpected state %ld.\n",
state);
1564 hr = IXMLHttpRequest_abort(
xhr);
1568 hr = IXMLHttpRequest_get_readyState(
xhr, &
state);
1571 "Unexpected state %ld.\n",
state);
1575 hr = IXMLHttpRequest_setRequestHeader(
xhr,
_bstr_(
"header1"),
_bstr_(
"value1"));
1587 hr = IXMLHttpRequest_send(
xhr, varbody);
1590 skip(
"No connection could be made with test.winehq.org\n");
1591 IXMLHttpRequest_Release(
xhr);
1597 hr = IXMLHttpRequest_getAllResponseHeaders(
xhr,
NULL);
1599 hr = IXMLHttpRequest_getAllResponseHeaders(
xhr, &
str);
1603 ok(*
str,
"got empty headers\n");
1604 hr = IXMLHttpRequest_getAllResponseHeaders(
xhr, &str1);
1606 ok(str1 !=
str,
"got %p\n", str1);
1614 hr = IXMLHttpRequest_getResponseHeader(
xhr,
_bstr_(
"Date"), &
str);
1625 hr = IXMLHttpRequest_get_statusText(
xhr,
NULL);
1628 hr = IXMLHttpRequest_get_statusText(
xhr, &
str);
1637 hr = IXMLHttpRequest_send(
xhr, varbody);
1640 hr = IXMLHttpRequest_get_responseText(
xhr, &bstrResponse);
1654 hr = IXMLHttpRequest_send(
xhr, varbody);
1662 hr = IXMLHttpRequest_send(
xhr, varbody);
1665 skip(
"No connection could be made with test.winehq.org\n");
1666 IXMLHttpRequest_Release(
xhr);
1671 hr = IXMLHttpRequest_get_responseText(
xhr,
NULL);
1674 hr = IXMLHttpRequest_get_responseText(
xhr, &bstrResponse);
1680 hr = IXMLHttpRequest_get_responseBody(
xhr,
NULL);
1684 hr = IXMLHttpRequest_get_responseBody(
xhr, &varbody);
1692 ok(!bound,
"Unexpected bound %ld.\n", bound);
1702 hr = IXMLHttpRequest_get_responseStream(
xhr,
NULL);
1706 hr = IXMLHttpRequest_get_responseStream(
xhr, &varbody);
1717 IDispatch_Release(
event);
1723 hr = IXMLHttpRequest_send(
xhr, varbody);
1725 hr = IXMLHttpRequest_get_responseText(
xhr, &
str);
1734 hr = IObjectWithSite_SetSite(obj_site,
NULL);
1739 ok(obj_site == obj_site2 ||
broken(obj_site != obj_site2),
"got new instance\n");
1740 IObjectWithSite_Release(obj_site2);
1748 hr = IXMLHttpRequest_send(
xhr, varbody);
1751 hr = IXMLHttpRequest_get_responseText(
xhr, &
str);
1758 hr = IObjectWithSite_SetSite(obj_site, &
testsite);
1761 IObjectWithSite_Release(obj_site);
1764 hr = IXMLHttpRequest_put_onreadystatechange(
xhr,
NULL);
1770 hr = IXMLHttpRequest_send(
xhr, varbody);
1774 hr = IXMLHttpRequest_get_responseText(
xhr, &
str);
1779 hr = IXMLHttpRequest_getAllResponseHeaders(
xhr, &
str);
1781 ok(
str && *
str,
"Expected response headers.\n");
1784 IXMLHttpRequest_Release(
xhr);
1789 test_open(
xhr,
"GET",
"http://invalid.host.test.winehq.org/test/path",
S_OK);
1792 hr = IXMLHttpRequest_send(
xhr, varbody);
1796 IXMLHttpRequest_Release(
xhr);
1802 IServerXMLHTTPRequest *
xhr;
1814 hr = IServerXMLHTTPRequest_send(
xhr,
body);
1817 skip(
"No connection could be made with test.winehq.org\n");
1818 IServerXMLHTTPRequest_Release(
xhr);
1823 hr = IServerXMLHTTPRequest_get_responseText(
xhr, &response);
1828 IServerXMLHTTPRequest_Release(
xhr);
1836 hr = IServerXMLHTTPRequest_send(
xhr,
body);
1840 IServerXMLHTTPRequest_Release(
xhr);
1860 IXMLHttpRequest_Release(
xhr);
1868 IServerXMLHTTPRequest *server_xhr;
1874 hr = IXMLHttpRequest_QueryInterface(
xhr, &IID_ISupportErrorInfo, (
void **)&errorinfo);
1878 hr = IXMLHttpRequest_QueryInterface(
xhr, &IID_ISupportErrorInfo, (
void **)&errorinfo2);
1880 ok(errorinfo == errorinfo2,
"Unexpected error info instance.\n");
1883 ISupportErrorInfo_Release(errorinfo2);
1884 ISupportErrorInfo_Release(errorinfo);
1886 IXMLHttpRequest_Release(
xhr);
1892 hr = IServerXMLHTTPRequest_QueryInterface(server_xhr, &IID_ISupportErrorInfo, (
void **)&errorinfo);
1896 hr = IServerXMLHTTPRequest_QueryInterface(server_xhr, &IID_ISupportErrorInfo, (
void **)&errorinfo2);
1898 ok(errorinfo == errorinfo2,
"Unexpected error info instance.\n");
1901 ISupportErrorInfo_Release(errorinfo2);
1902 ISupportErrorInfo_Release(errorinfo);
1904 IServerXMLHTTPRequest_Release(server_xhr);
1915 win_skip(
"IXMLHTTPRequest is not available\n");
1920 IXMLHttpRequest_Release(
xhr);
int memcmp(void *Buffer1, void *Buffer2, ACPI_SIZE Count)
#define InterlockedIncrement
#define InterlockedDecrement
static const WCHAR empty[]
#define MultiByteToWideChar
int WINAPI lstrcmpW(LPCWSTR str1, LPCWSTR str2)
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)
HRESULT WINAPI GetHGlobalFromStream(IStream *pstm, HGLOBAL *phglobal)
HRESULT WINAPI SafeArrayAccessData(SAFEARRAY *psa, void **ppvData)
HRESULT WINAPI SafeArrayUnaccessData(SAFEARRAY *psa)
UINT WINAPI SafeArrayGetDim(SAFEARRAY *psa)
HRESULT WINAPI SafeArrayGetLBound(SAFEARRAY *psa, UINT nDim, LONG *plLbound)
GLint GLint GLint GLint GLint x
GLint GLint GLint GLint GLint GLint y
GLenum const GLfloat * params
GLenum GLuint GLenum GLsizei const GLchar * buf
GLsizei GLenum const GLvoid GLsizei GLenum GLbyte GLbyte GLbyte GLdouble GLdouble GLdouble GLfloat GLfloat GLfloat GLint GLint GLint GLshort GLshort GLshort GLubyte GLubyte GLubyte GLuint GLuint GLuint GLushort GLushort GLushort GLbyte GLbyte GLbyte GLbyte GLdouble GLdouble GLdouble GLdouble GLfloat GLfloat GLfloat GLfloat GLint GLint GLint GLint GLshort GLshort GLshort GLshort GLubyte GLubyte GLubyte GLubyte GLuint GLuint GLuint GLuint GLushort GLushort GLushort GLushort GLboolean const GLdouble const GLfloat const GLint const GLshort const GLbyte const GLdouble const GLfloat const GLint const GLshort const GLdouble const GLfloat const GLint const GLshort const GLdouble const GLfloat const GLint const GLshort const GLdouble const GLfloat const GLint const GLshort const GLdouble const GLdouble const GLfloat const GLfloat const GLint const GLint const GLshort const GLshort const GLdouble const GLfloat const GLint const GLshort const GLdouble const GLfloat const GLint const GLshort const GLdouble const GLfloat const GLint const GLshort const GLdouble const GLfloat const GLint const GLshort const GLdouble const GLfloat const GLint const GLshort const GLdouble const GLfloat const GLint const GLshort const GLdouble const GLfloat const GLint const GLshort GLenum GLenum GLenum GLfloat GLenum GLint GLenum GLenum GLenum GLfloat GLenum GLenum GLint GLenum GLfloat GLenum GLint GLint GLushort GLenum GLenum GLfloat GLenum GLenum GLint GLfloat const GLubyte GLenum GLenum GLenum const GLfloat GLenum GLenum const GLint GLenum GLint GLint GLsizei GLsizei GLint GLenum GLenum const GLvoid GLenum GLenum const GLfloat GLenum GLenum const GLint GLenum GLenum const GLdouble GLenum GLenum const GLfloat GLenum GLenum const GLint GLsizei GLuint GLfloat GLuint GLbitfield GLfloat GLint GLuint GLboolean GLenum GLfloat GLenum GLbitfield GLenum GLfloat GLfloat GLint GLint const GLfloat GLenum GLfloat GLfloat GLint GLint GLfloat GLfloat GLint GLint const GLfloat GLint GLfloat GLfloat GLint GLfloat GLfloat GLint GLfloat GLfloat const GLdouble const GLfloat const GLdouble const GLfloat GLint i
static HRESULT WINAPI htmldoc2_get_linkColor(IHTMLDocument2 *iface, VARIANT *p)
static HRESULT WINAPI htmldoc2_get_selection(IHTMLDocument2 *iface, IHTMLSelectionObject **p)
static HRESULT WINAPI htmldoc2_put_defaultCharset(IHTMLDocument2 *iface, BSTR v)
static int g_expectedcall
static HRESULT WINAPI htmldoc2_toString(IHTMLDocument2 *iface, BSTR *String)
static HRESULT WINAPI htmldoc2_close(IHTMLDocument2 *iface)
static HRESULT WINAPI htmlecoll_item(IHTMLElementCollection *iface, VARIANT name, VARIANT index, IDispatch **pdisp)
static BSTR _bstr_(const char *str)
static HRESULT WINAPI htmlecoll_GetTypeInfoCount(IHTMLElementCollection *iface, UINT *pctinfo)
static HRESULT WINAPI htmldoc2_get_onkeydown(IHTMLDocument2 *iface, VARIANT *p)
static HRESULT WINAPI htmldoc2_get_onclick(IHTMLDocument2 *iface, VARIANT *p)
static HRESULT WINAPI htmldoc2_get_nameProp(IHTMLDocument2 *iface, BSTR *p)
static HRESULT WINAPI sp_QueryInterface(IServiceProvider *iface, REFIID riid, void **ppvObject)
static HRESULT WINAPI htmldoc2_elementFromPoint(IHTMLDocument2 *iface, LONG x, LONG y, IHTMLElement **elementHit)
static HRESULT WINAPI htmldoc2_put_onclick(IHTMLDocument2 *iface, VARIANT v)
static HRESULT WINAPI htmldoc2_get_activeElement(IHTMLDocument2 *iface, IHTMLElement **p)
static HRESULT WINAPI htmldoc2_GetTypeInfoCount(IHTMLDocument2 *iface, UINT *pctinfo)
static HRESULT WINAPI htmlecoll_put_length(IHTMLElementCollection *iface, LONG v)
static HRESULT WINAPI htmldoc2_open(IHTMLDocument2 *iface, BSTR url, VARIANT name, VARIANT features, VARIANT replace, IDispatch **pomWindowResult)
static IXMLHttpRequest * httpreq
static int g_unexpectedcall
static HRESULT WINAPI htmldoc2_put_expando(IHTMLDocument2 *iface, VARIANT_BOOL v)
static HRESULT WINAPI htmldoc2_put_vlinkColor(IHTMLDocument2 *iface, VARIANT v)
static BSTR alloced_bstrs[256]
static ULONG WINAPI sp_AddRef(IServiceProvider *iface)
static HRESULT WINAPI htmldoc2_createStyleSheet(IHTMLDocument2 *iface, BSTR bstrHref, LONG lIndex, IHTMLStyleSheet **ppnewStyleSheet)
static HRESULT WINAPI htmlecoll_get__newEnum(IHTMLElementCollection *iface, IUnknown **p)
static HRESULT WINAPI htmldoc2_get_readyState(IHTMLDocument2 *iface, BSTR *p)
static HRESULT WINAPI htmldoc2_get_fileUpdatedDate(IHTMLDocument2 *iface, BSTR *p)
static HRESULT WINAPI htmldoc2_get_plugins(IHTMLDocument2 *iface, IHTMLElementCollection **p)
static HRESULT WINAPI htmldoc2_get_designMode(IHTMLDocument2 *iface, BSTR *p)
static HRESULT WINAPI htmldoc2_get_mimeType(IHTMLDocument2 *iface, BSTR *p)
static HRESULT WINAPI htmldoc2_createElement(IHTMLDocument2 *iface, BSTR eTag, IHTMLElement **newElem)
static HRESULT WINAPI htmldoc2_get_URL(IHTMLDocument2 *iface, BSTR *p)
static dispevent * impl_from_IDispatch(IDispatch *iface)
static void check_interface_(unsigned int line, void *iface_ptr, REFIID iid, BOOL supported)
static HRESULT WINAPI htmldoc2_get_title(IHTMLDocument2 *iface, BSTR *p)
static HRESULT WINAPI htmldoc2_get_Script(IHTMLDocument2 *iface, IDispatch **p)
static HRESULT WINAPI htmldoc2_put_linkColor(IHTMLDocument2 *iface, VARIANT v)
static ULONG WINAPI htmlecoll_AddRef(IHTMLElementCollection *iface)
static HRESULT WINAPI dispevent_GetTypeInfo(IDispatch *iface, UINT iTInfo, LCID lcid, ITypeInfo **ppTInfo)
#define test_open(a, b, c, d)
static ULONG WINAPI sp_Release(IServiceProvider *iface)
static HRESULT WINAPI htmldoc2_put_onhelp(IHTMLDocument2 *iface, VARIANT v)
static const char xmltestA[]
static IServiceProvider testprov
static HRESULT WINAPI htmldoc2_put_designMode(IHTMLDocument2 *iface, BSTR v)
static void test_XMLHTTP(void)
static BSTR alloc_str_from_narrow(const char *str)
static HRESULT WINAPI htmldoc2_get_scripts(IHTMLDocument2 *iface, IHTMLElementCollection **p)
static HRESULT WINAPI htmldoc2_get_expando(IHTMLDocument2 *iface, VARIANT_BOOL *p)
static HRESULT WINAPI dispevent_Invoke(IDispatch *iface, DISPID member, REFIID riid, LCID lcid, WORD flags, DISPPARAMS *params, VARIANT *result, EXCEPINFO *excepInfo, UINT *argErr)
static HRESULT WINAPI htmldoc2_get_onmousemove(IHTMLDocument2 *iface, VARIANT *p)
static void _test_open(unsigned line, IXMLHttpRequest *xhr, const char *method, const char *url, HRESULT exhres)
static HRESULT WINAPI site_QueryInterface(IUnknown *iface, REFIID riid, void **ppvObject)
static HRESULT WINAPI htmldoc2_get_parentWindow(IHTMLDocument2 *iface, IHTMLWindow2 **p)
static HRESULT WINAPI htmldoc2_put_onerrorupdate(IHTMLDocument2 *iface, VARIANT v)
static HRESULT WINAPI htmldoc2_get_fileCreatedDate(IHTMLDocument2 *iface, BSTR *p)
#define EXPECT_REF(node, ref)
static const IServiceProviderVtbl testprovVtbl
static const IHTMLDocument2Vtbl TestHTMLDocumentVtbl
static HRESULT WINAPI htmldoc2_get_onerrorupdate(IHTMLDocument2 *iface, VARIANT *p)
static HRESULT WINAPI htmldoc2_GetIDsOfNames(IHTMLDocument2 *iface, REFIID riid, LPOLESTR *rgszNames, UINT cNames, LCID lcid, DISPID *rgDispId)
static ULONG WINAPI site_AddRef(IUnknown *iface)
static void test_server_xhr(void)
static void test_safe_httpreq(void)
static void _expect_ref(IUnknown *obj, ULONG ref, int line)
static HRESULT WINAPI htmldoc2_put_charset(IHTMLDocument2 *iface, BSTR v)
#define DEFINE_EXPECT(func)
static HRESULT WINAPI htmlecoll_tags(IHTMLElementCollection *iface, VARIANT tagName, IDispatch **pdisp)
static HRESULT WINAPI htmlecoll_get_length(IHTMLElementCollection *iface, LONG *v)
static ULONG WINAPI site_Release(IUnknown *iface)
static HRESULT WINAPI htmldoc2_get_defaultCharset(IHTMLDocument2 *iface, BSTR *p)
static HRESULT WINAPI htmldoc2_get_onkeypress(IHTMLDocument2 *iface, VARIANT *p)
static HRESULT WINAPI htmlecoll_Invoke(IHTMLElementCollection *iface, DISPID dispIdMember, REFIID riid, LCID lcid, WORD wFlags, DISPPARAMS *pDispParams, VARIANT *pVarResult, EXCEPINFO *pExcepInfo, UINT *puArgErr)
static HRESULT WINAPI htmldoc2_put_onmouseover(IHTMLDocument2 *iface, VARIANT v)
static HRESULT WINAPI htmldoc2_get_onmouseover(IHTMLDocument2 *iface, VARIANT *p)
static int alloced_bstrs_count
static ULONG WINAPI htmlecoll_Release(IHTMLElementCollection *iface)
static HRESULT WINAPI htmldoc2_put_alinkColor(IHTMLDocument2 *iface, VARIANT v)
#define test_server_open(a, b, c, d)
static ULONG WINAPI dispevent_AddRef(IDispatch *iface)
static HRESULT WINAPI htmldoc2_get_links(IHTMLDocument2 *iface, IHTMLElementCollection **p)
static HRESULT WINAPI dispevent_QueryInterface(IDispatch *iface, REFIID riid, void **ppvObject)
static void free_bstrs(void)
static HRESULT WINAPI htmldoc2_get_protocol(IHTMLDocument2 *iface, BSTR *p)
static IHTMLDocument2 htmldoc2
static HRESULT WINAPI htmldoc2_get_onbeforeupdate(IHTMLDocument2 *iface, VARIANT *p)
static void test_supporterrorinfo(void)
static IServerXMLHTTPRequest * create_server_xhr(void)
static HRESULT WINAPI htmldoc2_put_onselectstart(IHTMLDocument2 *iface, VARIANT v)
static HRESULT WINAPI htmldoc2_put_title(IHTMLDocument2 *iface, BSTR v)
static int strcmp_wa(const WCHAR *strw, const char *stra)
static HRESULT WINAPI htmldoc2_put_fgColor(IHTMLDocument2 *iface, VARIANT v)
static HRESULT WINAPI htmldoc2_put_bgColor(IHTMLDocument2 *iface, VARIANT v)
static HRESULT WINAPI htmldoc2_get_fgColor(IHTMLDocument2 *iface, VARIANT *p)
static void _test_server_open(unsigned line, IServerXMLHTTPRequest *xhr, const char *method, const char *url, HRESULT exhres)
static HRESULT WINAPI htmldoc2_write(IHTMLDocument2 *iface, SAFEARRAY *psarray)
static HRESULT WINAPI htmldoc2_get_images(IHTMLDocument2 *iface, IHTMLElementCollection **p)
static HRESULT WINAPI dispevent_GetTypeInfoCount(IDispatch *iface, UINT *pctinfo)
static ULONG WINAPI htmldoc2_AddRef(IHTMLDocument2 *iface)
static HRESULT WINAPI htmldoc2_get_ondblclick(IHTMLDocument2 *iface, VARIANT *p)
static HRESULT WINAPI htmldoc2_get_onselectstart(IHTMLDocument2 *iface, VARIANT *p)
static HRESULT WINAPI htmldoc2_get_alinkColor(IHTMLDocument2 *iface, VARIANT *p)
static HRESULT WINAPI htmldoc2_get_domain(IHTMLDocument2 *iface, BSTR *p)
static HRESULT WINAPI htmldoc2_queryCommandIndeterm(IHTMLDocument2 *iface, BSTR cmdID, VARIANT_BOOL *pfRet)
static HRESULT WINAPI htmldoc2_get_forms(IHTMLDocument2 *iface, IHTMLElementCollection **p)
static IDispatch * create_dispevent(void)
static HRESULT WINAPI htmldoc2_get_fileSize(IHTMLDocument2 *iface, BSTR *p)
static HRESULT WINAPI htmldoc2_put_onreadystatechange(IHTMLDocument2 *iface, VARIANT v)
static HRESULT WINAPI htmldoc2_put_onkeyup(IHTMLDocument2 *iface, VARIANT v)
#define CHECK_EXPECT2(func)
static HRESULT WINAPI htmldoc2_QueryInterface(IHTMLDocument2 *iface, REFIID riid, void **ppvObject)
static HRESULT WINAPI htmldoc2_writeln(IHTMLDocument2 *iface, SAFEARRAY *psarray)
static HRESULT WINAPI htmlecoll_GetTypeInfo(IHTMLElementCollection *iface, UINT iTInfo, LCID lcid, ITypeInfo **ppTInfo)
static HRESULT WINAPI dispevent_GetIDsOfNames(IDispatch *iface, REFIID riid, LPOLESTR *rgszNames, UINT cNames, LCID lcid, DISPID *rgDispId)
static HRESULT WINAPI htmldoc2_queryCommandEnabled(IHTMLDocument2 *iface, BSTR cmdID, VARIANT_BOOL *pfRet)
static HRESULT WINAPI htmldoc2_get_ondragstart(IHTMLDocument2 *iface, VARIANT *p)
static ULONG WINAPI dispevent_Release(IDispatch *iface)
static HRESULT WINAPI htmldoc2_put_onbeforeupdate(IHTMLDocument2 *iface, VARIANT v)
static HRESULT WINAPI htmldoc2_get_onhelp(IHTMLDocument2 *iface, VARIANT *p)
static HRESULT WINAPI htmldoc2_queryCommandText(IHTMLDocument2 *iface, BSTR cmdID, BSTR *pfRet)
static HRESULT WINAPI htmldoc2_queryCommandState(IHTMLDocument2 *iface, BSTR cmdID, VARIANT_BOOL *pfRet)
static HRESULT WINAPI htmldoc2_put_domain(IHTMLDocument2 *iface, BSTR v)
static HRESULT WINAPI htmldoc2_put_onrowenter(IHTMLDocument2 *iface, VARIANT v)
static HRESULT WINAPI htmldoc2_get_all(IHTMLDocument2 *iface, IHTMLElementCollection **p)
static HRESULT WINAPI htmldoc2_put_onmousedown(IHTMLDocument2 *iface, VARIANT v)
static HRESULT WINAPI htmlecoll_toString(IHTMLElementCollection *iface, BSTR *String)
static HRESULT WINAPI htmldoc2_execCommandShowHelp(IHTMLDocument2 *iface, BSTR cmdID, VARIANT_BOOL *pfRet)
static HRESULT WINAPI htmldoc2_get_fileModifiedDate(IHTMLDocument2 *iface, BSTR *p)
static HRESULT WINAPI htmldoc2_put_onkeypress(IHTMLDocument2 *iface, VARIANT v)
static HRESULT WINAPI htmldoc2_get_body(IHTMLDocument2 *iface, IHTMLElement **p)
static HRESULT WINAPI htmldoc2_execCommand(IHTMLDocument2 *iface, BSTR cmdID, VARIANT_BOOL showUI, VARIANT value, VARIANT_BOOL *pfRet)
static void set_xhr_site(IXMLHttpRequest *xhr)
static HRESULT WINAPI htmldoc2_get_styleSheets(IHTMLDocument2 *iface, IHTMLStyleSheetsCollection **p)
static HRESULT WINAPI htmldoc2_get_embeds(IHTMLDocument2 *iface, IHTMLElementCollection **p)
static HRESULT WINAPI htmldoc2_get_frames(IHTMLDocument2 *iface, IHTMLFramesCollection2 **p)
#define CHECK_CALLED(func)
static IHTMLElementCollection htmlecoll
static HRESULT WINAPI htmldoc2_get_onafterupdate(IHTMLDocument2 *iface, VARIANT *p)
static HRESULT WINAPI htmldoc2_get_applets(IHTMLDocument2 *iface, IHTMLElementCollection **p)
static IXMLHttpRequest * create_xhr(void)
static HRESULT WINAPI htmldoc2_get_lastModified(IHTMLDocument2 *iface, BSTR *p)
static HRESULT WINAPI htmldoc2_get_vlinkColor(IHTMLDocument2 *iface, VARIANT *p)
static HRESULT WINAPI htmldoc2_get_onrowenter(IHTMLDocument2 *iface, VARIANT *p)
static HRESULT WINAPI htmldoc2_get_cookie(IHTMLDocument2 *iface, BSTR *p)
static HRESULT WINAPI htmldoc2_put_onkeydown(IHTMLDocument2 *iface, VARIANT v)
#define check_interface(a, b, c)
static HRESULT WINAPI htmldoc2_Invoke(IHTMLDocument2 *iface, DISPID dispIdMember, REFIID riid, LCID lcid, WORD wFlags, DISPPARAMS *pDispParams, VARIANT *pVarResult, EXCEPINFO *pExcepInfo, UINT *puArgErr)
static HRESULT WINAPI htmldoc2_get_bgColor(IHTMLDocument2 *iface, VARIANT *p)
static const IHTMLElementCollectionVtbl TestHTMLECollectionVtbl
static HRESULT WINAPI htmlecoll_QueryInterface(IHTMLElementCollection *iface, REFIID riid, void **ppvObject)
static HRESULT WINAPI htmldoc2_queryCommandSupported(IHTMLDocument2 *iface, BSTR cmdID, VARIANT_BOOL *pfRet)
static HRESULT WINAPI htmldoc2_put_cookie(IHTMLDocument2 *iface, BSTR v)
static HRESULT WINAPI htmldoc2_get_onmousedown(IHTMLDocument2 *iface, VARIANT *p)
static HRESULT WINAPI htmlecoll_GetIDsOfNames(IHTMLElementCollection *iface, REFIID riid, LPOLESTR *rgszNames, UINT cNames, LCID lcid, DISPID *rgDispId)
static HRESULT WINAPI htmldoc2_get_anchors(IHTMLDocument2 *iface, IHTMLElementCollection **p)
static HRESULT WINAPI htmldoc2_get_onreadystatechange(IHTMLDocument2 *iface, VARIANT *p)
static HRESULT WINAPI htmldoc2_put_onmouseout(IHTMLDocument2 *iface, VARIANT v)
static void set_safety_opt(IUnknown *unk, DWORD mask, DWORD opts)
static HRESULT WINAPI htmldoc2_get_security(IHTMLDocument2 *iface, BSTR *p)
static HRESULT WINAPI htmldoc2_queryCommandValue(IHTMLDocument2 *iface, BSTR cmdID, VARIANT *pfRet)
static HRESULT WINAPI htmldoc2_put_onmousemove(IHTMLDocument2 *iface, VARIANT v)
static HRESULT WINAPI htmldoc2_put_onmouseup(IHTMLDocument2 *iface, VARIANT v)
static HRESULT WINAPI htmldoc2_put_onafterupdate(IHTMLDocument2 *iface, VARIANT v)
static HRESULT WINAPI htmldoc2_get_location(IHTMLDocument2 *iface, IHTMLLocation **p)
static BOOL g_enablecallchecks
static HRESULT WINAPI htmldoc2_GetTypeInfo(IHTMLDocument2 *iface, UINT iTInfo, LCID lcid, ITypeInfo **ppTInfo)
static HRESULT WINAPI htmldoc2_put_ondragstart(IHTMLDocument2 *iface, VARIANT v)
static HRESULT WINAPI htmldoc2_get_onkeyup(IHTMLDocument2 *iface, VARIANT *p)
static HRESULT WINAPI htmldoc2_get_referrer(IHTMLDocument2 *iface, BSTR *p)
static HRESULT WINAPI htmldoc2_get_onrowexit(IHTMLDocument2 *iface, VARIANT *p)
static HRESULT WINAPI htmldoc2_put_URL(IHTMLDocument2 *iface, BSTR v)
static HRESULT WINAPI htmldoc2_put_ondblclick(IHTMLDocument2 *iface, VARIANT v)
static const CHAR xmltestbodyA[]
static const IUnknownVtbl testsiteVtbl
static ULONG WINAPI htmldoc2_Release(IHTMLDocument2 *iface)
static HRESULT WINAPI htmldoc2_get_onmouseup(IHTMLDocument2 *iface, VARIANT *p)
static HRESULT WINAPI htmldoc2_get_onmouseout(IHTMLDocument2 *iface, VARIANT *p)
static HRESULT WINAPI sp_QueryService(IServiceProvider *iface, REFGUID service, REFIID riid, void **obj)
static HRESULT WINAPI htmldoc2_clear(IHTMLDocument2 *iface)
static const IDispatchVtbl dispeventVtbl
static HRESULT WINAPI htmldoc2_put_onrowexit(IHTMLDocument2 *iface, VARIANT v)
static HRESULT WINAPI htmldoc2_get_charset(IHTMLDocument2 *iface, BSTR *p)
const IID IID_IObjectWithSite
static const char * strw(LPCWSTR x)
static IHTMLXMLHttpRequest * xhr
static VARIANTARG static DISPID
interface IHTMLWindow2 IHTMLWindow2
const struct _GUID CLSID_XMLHTTPRequest
#define LOCALE_SYSTEM_DEFAULT
BSTR WINAPI SysAllocString(LPCOLESTR str)
void WINAPI DECLSPEC_HOTPATCH SysFreeString(BSTR str)
BSTR WINAPI SysAllocStringLen(const OLECHAR *str, unsigned int len)
const GUID IID_IOleClientSite
#define DEFINE_GUID(name, l, w1, w2, b1, b2, b3, b4, b5, b6, b7, b8)
#define IsEqualGUID(rguid1, rguid2)
INT replace(TCHAR source[MAX_PATH], TCHAR dest[MAX_PATH], DWORD dwFlags, BOOL *doMore)
static __inline const char * wine_dbgstr_guid(const GUID *id)
static const void * body(MD5_CTX *ctx, const void *data, unsigned long size)
#define CONTAINING_RECORD(address, type, field)
HRESULT WINAPI DECLSPEC_HOTPATCH VariantClear(VARIANTARG *pVarg)
void WINAPI VariantInit(VARIANTARG *pVarg)
_Must_inspect_result_ _In_ WDFDEVICE _In_ WDFSTRING String
WINBASEAPI _In_ DWORD _Out_ _In_ WORD wFlags
#define WININET_E_NAME_NOT_RESOLVED
#define DISP_E_MEMBERNOTFOUND
#define INET_E_RESOURCE_NOT_FOUND