23DEFINE_GUID(
CLSID_IdentityUnmarshal,0x0000001b,0x0000,0x0000,0xc0,0x00,0x00,0x00,0x00,0x00,0x00,0x46);
27 {0x10200490,0xfa38,0x11d0,{0xac,0x0e,0x00,0xa0,0xc9,0xf,0xff,0xc0}};
31#define CTXARG_T DWORDLONG
32#define IActiveScriptParseVtbl IActiveScriptParse64Vtbl
33#define IActiveScriptParseProcedure2Vtbl IActiveScriptParseProcedure2_64Vtbl
34#define IActiveScriptSiteDebug_Release IActiveScriptSiteDebug64_Release
39#define IActiveScriptParseVtbl IActiveScriptParse32Vtbl
40#define IActiveScriptParseProcedure2Vtbl IActiveScriptParseProcedure2_32Vtbl
41#define IActiveScriptSiteDebug_Release IActiveScriptSiteDebug32_Release
45#define DEFINE_EXPECT(func) \
46 static BOOL expect_ ## func = FALSE, called_ ## func = FALSE
48#define SET_EXPECT(func) \
49 do { called_ ## func = FALSE; expect_ ## func = TRUE; } while(0)
51#define CHECK_EXPECT2(func) \
53 ok(expect_ ##func, "unexpected call " #func "\n"); \
54 called_ ## func = TRUE; \
57#define CHECK_EXPECT(func) \
59 CHECK_EXPECT2(func); \
60 expect_ ## func = FALSE; \
63#define CHECK_CALLED(func) \
65 ok(called_ ## func, "expected " #func "\n"); \
66 expect_ ## func = called_ ## func = FALSE; \
69#define CHECK_CALLED_BROKEN(func) \
71 ok(called_ ## func || broken(!called_ ## func), "expected " #func "\n"); \
72 expect_ ## func = called_ ## func = FALSE; \
75#define CHECK_NOT_CALLED(func) \
77 ok(!called_ ## func, "unexpected " #func "\n"); \
78 expect_ ## func = called_ ## func = FALSE; \
81#define CLEAR_CALLED(func) \
82 expect_ ## func = called_ ## func = FALSE
120#define TESTSCRIPT_CLSID "{178fc163-f585-4e24-9c13-4bb7faf80746}"
121#define TESTACTIVEX_CLSID "{178fc163-f585-4e24-9c13-4bb7faf80646}"
123#define DISPID_SCRIPT_TESTPROP 0x100000
124#define DISPID_SCRIPT_TESTPROP2 0x100001
126#define DISPID_EXTERNAL_OK 0x300000
127#define DISPID_EXTERNAL_TRACE 0x300001
128#define DISPID_EXTERNAL_REPORTSUCCESS 0x300002
129#define DISPID_EXTERNAL_TODO_WINE_OK 0x300003
130#define DISPID_EXTERNAL_BROKEN 0x300004
133 {0x178fc163,0xf585,0x4e24,{0x9c,0x13,0x4b,0xb7,0xfa,0xf8,0x07,0x46}};
135 {0x178fc163,0xf585,0x4e24,{0x9c,0x13,0x4b,0xb7,0xfa,0xf8,0x06,0x46}};
223 static const WCHAR completeW[] = {
'c',
'o',
'm',
'p',
'l',
'e',
't',
'e',0};
239 ok(0,
"unexpected call\n");
298 ok(0,
"unexpected call\n");
315 if(
IsEqualGUID(guidService, &SID_VariantConversion)) {
322 if(
IsEqualGUID(guidService, &IID_IActiveScriptSite)) {
325 return IActiveScriptSite_QueryInterface(
site,
riid,
ppv);
374 ok(0,
"unexpected call\n");
381 ok(0,
"unexpected call\n");
389 ok(0,
"unexpected call\n");
395 VARIANT *pVarResult, EXCEPINFO *pExcepInfo,
UINT *puArgErr)
397 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");
448 ok(
id == DISPID_VALUE,
"id = %d\n",
id);
449 ok(lcid == 0,
"lcid = %x\n", lcid);
451 ok(pdp !=
NULL,
"pdp == NULL\n");
452 ok(pdp->cArgs == 2,
"pdp->cArgs = %d\n", pdp->cArgs);
453 ok(pdp->cNamedArgs == 1,
"pdp->cNamedArgs = %d\n", pdp->cNamedArgs);
454 ok(pdp->rgdispidNamedArgs[0] ==
DISPID_THIS,
"pdp->rgdispidNamedArgs[0] = %d\n", pdp->rgdispidNamedArgs[0]);
457 ok(
V_BOOL(pdp->rgvarg+1) == VARIANT_TRUE,
"V_BOOL(rgvarg[1]) = %x\n",
V_BOOL(pdp->rgvarg));
458 ok(pvarRes !=
NULL,
"pvarRes == NULL\n");
459 ok(pei !=
NULL,
"pei == NULL\n");
460 ok(!pspCaller,
"pspCaller != NULL\n");
491 ok(grfdex == fdexNameCaseSensitive,
"grfdex = %x\n", grfdex);
498 ok(grfdex == fdexNameCaseSensitive,
"grfdex = %x\n", grfdex);
505 ok(grfdex == fdexNameCaseSensitive,
"grfdex = %x\n", grfdex);
520 ok(lcid == 0,
"lcid = %x\n", lcid);
522 ok(pdp !=
NULL,
"pdp == NULL\n");
523 ok(pdp->cArgs == 0,
"pdp->cArgs = %d\n", pdp->cArgs);
524 ok(pdp->cNamedArgs == 0,
"pdp->cNamedArgs = %d\n", pdp->cNamedArgs);
525 ok(!pdp->rgdispidNamedArgs,
"pdp->rgdispidNamedArgs != NULL\n");
526 ok(!pdp->rgvarg,
"rgvarg != NULL\n");
527 ok(pvarRes !=
NULL,
"pvarRes == NULL\n");
528 ok(pei !=
NULL,
"pei == NULL\n");
529 ok(!pspCaller,
"pspCaller != NULL\n");
534 ok(0,
"unexpected call\n");
571 if(!
strcmp_wa(bstrName,
"reportSuccess")) {
575 if(!
strcmp_wa(bstrName,
"todo_wine_ok")) {
595 ok(
wFlags == INVOKE_FUNC ||
wFlags == (INVOKE_FUNC|INVOKE_PROPERTYGET),
"wFlags = %x\n",
wFlags);
596 ok(pdp !=
NULL,
"pdp == NULL\n");
597 ok(pdp->rgvarg !=
NULL,
"rgvarg == NULL\n");
598 ok(!pdp->rgdispidNamedArgs,
"rgdispidNamedArgs != NULL\n");
599 ok(pdp->cArgs == 2,
"cArgs = %d\n", pdp->cArgs);
600 ok(!pdp->cNamedArgs,
"cNamedArgs = %d\n", pdp->cNamedArgs);
601 ok(pei !=
NULL,
"pei == NULL\n");
619 ok(pdp !=
NULL,
"pdp == NULL\n");
620 ok(pdp->rgvarg !=
NULL,
"rgvarg == NULL\n");
621 ok(!pdp->rgdispidNamedArgs,
"rgdispidNamedArgs != NULL\n");
622 ok(pdp->cArgs == 1,
"cArgs = %d\n", pdp->cArgs);
623 ok(!pdp->cNamedArgs,
"cNamedArgs = %d\n", pdp->cNamedArgs);
624 ok(!pvarRes,
"pvarRes != NULL\n");
625 ok(pei !=
NULL,
"pei == NULL\n");
627 ok(
V_VT(pdp->rgvarg) ==
VT_BSTR,
"V_VT(psp->rgvargs) = %d\n",
V_VT(pdp->rgvarg));
637 ok(pdp !=
NULL,
"pdp == NULL\n");
638 ok(!pdp->rgdispidNamedArgs,
"rgdispidNamedArgs != NULL\n");
639 ok(pdp->cArgs == 0,
"cArgs = %d\n", pdp->cArgs);
640 ok(!pdp->cNamedArgs,
"cNamedArgs = %d\n", pdp->cNamedArgs);
641 ok(!pvarRes,
"pvarRes != NULL\n");
642 ok(pei !=
NULL,
"pei == NULL\n");
647 ok(
wFlags == INVOKE_FUNC ||
wFlags == (INVOKE_FUNC|INVOKE_PROPERTYGET),
"wFlags = %x\n",
wFlags);
648 ok(pdp !=
NULL,
"pdp == NULL\n");
649 ok(pdp->rgvarg !=
NULL,
"rgvarg == NULL\n");
650 ok(!pdp->rgdispidNamedArgs,
"rgdispidNamedArgs != NULL\n");
651 ok(pdp->cArgs == 2,
"cArgs = %d\n", pdp->cArgs);
652 ok(!pdp->cNamedArgs,
"cNamedArgs = %d\n", pdp->cNamedArgs);
653 ok(pei !=
NULL,
"pei == NULL\n");
655 ok(
V_VT(pdp->rgvarg) ==
VT_BSTR,
"V_VT(psp->rgvargs) = %d\n",
V_VT(pdp->rgvarg));
656 ok(
V_VT(pdp->rgvarg+1) ==
VT_BOOL,
"V_VT(psp->rgvargs+1) = %d\n",
V_VT(pdp->rgvarg));
663 ok(
wFlags == INVOKE_FUNC ||
wFlags == (INVOKE_FUNC|INVOKE_PROPERTYGET),
"wFlags = %x\n",
wFlags);
664 ok(pdp !=
NULL,
"pdp == NULL\n");
665 ok(pdp->rgvarg !=
NULL,
"rgvarg == NULL\n");
666 ok(!pdp->rgdispidNamedArgs,
"rgdispidNamedArgs != NULL\n");
667 ok(pdp->cArgs == 1,
"cArgs = %d\n", pdp->cArgs);
668 ok(!pdp->cNamedArgs,
"cNamedArgs = %d\n", pdp->cNamedArgs);
669 ok(pei !=
NULL,
"pei == NULL\n");
671 ok(
V_VT(pdp->rgvarg) ==
VT_BOOL,
"V_VT(psp->rgvargs) = %d\n",
V_VT(pdp->rgvarg));
677 ok(0,
"unexpected call\n");
867 LPCBORDERWIDTHS pborderwidths)
873 LPCBORDERWIDTHS pborderwidths)
885 LPOLEMENUGROUPWIDTHS lpMenuWidths)
891 HOLEMENU holemenu,
HWND hwndActiveObject)
893 ok(0,
"unexpected call\n");
899 ok(0,
"unexpected call\n");
915 ok(0,
"unexpected call\n");
962 ok(0,
"unexpected call\n");
983 LPRECT lprcClipRect, LPOLEINPLACEFRAMEINFO lpFrameInfo)
985 static const RECT rect = {0,0,300,300};
990 *lprcClipRect =
rect;
992 ok(lpFrameInfo->cb ==
sizeof(*lpFrameInfo),
"lpFrameInfo->cb = %u, expected %u\n", lpFrameInfo->cb, (
unsigned)
sizeof(*lpFrameInfo));
993 lpFrameInfo->fMDIApp =
FALSE;
995 lpFrameInfo->haccel =
NULL;
996 lpFrameInfo->cAccelEntries = 0;
1068 ok(0,
"unexpected call\n");
1075 ok(0,
"unexpected call\n");
1086 ok(0,
"unexpected call\n");
1092 ok(0,
"unexpected call\n");
1098 ok(0,
"unexpected call\n");
1137 hres = IOleDocumentView_QueryInterface(pViewToActivate, &IID_IOleDocument, (
void**)&document);
1141 IOleDocument_Release(document);
1186 IHTMLDocument2 *doc;
1190 &IID_IHTMLDocument2, (
void**)&doc);
1211 IPersistStreamInit_Release(
init);
1223 ok(
hres ==
S_OK,
"QueryInterface(IID_IConnectionPointContainer) failed: %08x\n",
hres);
1226 IConnectionPointContainer_Release(
container);
1231 hres = IConnectionPoint_Advise(
cp, unk_advise, &
cookie);
1232 IConnectionPoint_Release(
cp);
1243 IOleDocumentView_CloseView(
view, 0);
1244 IOleDocumentView_SetInPlaceSite(
view,
NULL);
1245 IOleDocumentView_Release(
view);
1258 hres = IOleObject_QueryInterface(oleobj, &IID_IHlinkTarget, (
void**)&hlink);
1259 ok(
hres ==
S_OK,
"Could not get IHlinkTarget iface: %08x\n",
hres);
1261 hres = IHlinkTarget_Navigate(hlink, 0,
NULL);
1264 IHlinkTarget_Release(hlink);
1267 IOleObject_Release(oleobj);
1277 static const WCHAR ucPtr[] = {
'b',
'a',
'c',
'k',
'g',
'r',
'o',
'u',
'n',
'd',0};
1289 hres = IHTMLDocument2_get_body(doc, &
body);
1295 ok(
hres ==
S_OK,
"GetIDsOfNames(background) failed %08x\n",
hres);
1298 IHTMLElement_Release(
body);
1319 DWORD *pdwSupportedOptions,
DWORD *pdwEnabledOptions)
1324 ok(pdwSupportedOptions !=
NULL,
"pdwSupportedOptions == NULL\n");
1325 ok(pdwEnabledOptions !=
NULL,
"pdwEnabledOptions == NULL\n");
1327 *pdwSupportedOptions = INTERFACESAFE_FOR_UNTRUSTED_DATA|INTERFACE_USES_DISPEX|INTERFACE_USES_SECURITY_MANAGER;
1328 *pdwEnabledOptions = INTERFACE_USES_DISPEX;
1334 DWORD dwOptionSetMask,
DWORD dwEnabledOptions)
1340 ok(dwOptionSetMask == (INTERFACESAFE_FOR_UNTRUSTED_DATA|INTERFACE_USES_DISPEX|INTERFACE_USES_SECURITY_MANAGER),
1341 "dwOptionSetMask=%x\n", dwOptionSetMask);
1342 ok(dwEnabledOptions == (INTERFACESAFE_FOR_UNTRUSTED_DATA|INTERFACE_USES_DISPEX|INTERFACE_USES_SECURITY_MANAGER),
1343 "dwEnabledOptions=%x\n", dwOptionSetMask);
1380 DWORD *pdwSupportedOptions,
DWORD *pdwEnabledOptions)
1385 ok(pdwSupportedOptions !=
NULL,
"pdwSupportedOptions == NULL\n");
1386 ok(pdwEnabledOptions !=
NULL,
"pdwEnabledOptions == NULL\n");
1389 *pdwSupportedOptions = INTERFACESAFE_FOR_UNTRUSTED_DATA|INTERFACE_USES_DISPEX|INTERFACE_USES_SECURITY_MANAGER;
1390 *pdwEnabledOptions = INTERFACE_USES_DISPEX;
1397 DWORD dwOptionSetMask,
DWORD dwEnabledOptions)
1400 switch(dwEnabledOptions) {
1401 case INTERFACESAFE_FOR_UNTRUSTED_CALLER|INTERFACE_USES_SECURITY_MANAGER:
1402 CHECK_EXPECT(AXSetInterfaceSafetyOptions_IDispatchEx_caller_secmgr);
1404 case INTERFACESAFE_FOR_UNTRUSTED_CALLER:
1405 CHECK_EXPECT(AXSetInterfaceSafetyOptions_IDispatchEx_caller);
1408 ok(0,
"unexpected dwEnabledOptions %x\n", dwEnabledOptions);
1411 ok(dwOptionSetMask == dwEnabledOptions,
"dwOptionSetMask=%x, expected %x\n", dwOptionSetMask, dwEnabledOptions);
1418 switch(dwEnabledOptions) {
1419 case INTERFACESAFE_FOR_UNTRUSTED_CALLER:
1420 CHECK_EXPECT(AXSetInterfaceSafetyOptions_IDispatch_caller);
1423 case INTERFACESAFE_FOR_UNTRUSTED_DATA:
1424 CHECK_EXPECT(AXSetInterfaceSafetyOptions_IDispatch_data);
1428 ok(0,
"unexpected dwEnabledOptions %x\n", dwEnabledOptions);
1431 ok(dwOptionSetMask == dwEnabledOptions,
"dwOptionSetMask=%x, expected %x\n", dwOptionSetMask, dwEnabledOptions);
1457#define check_custom_policy(a,b,c,d) _check_custom_policy(__LINE__,a,b,c,d)
1461 ok_(__FILE__,
line)(policy_size ==
sizeof(
DWORD),
"policy_size = %d\n", policy_size);
1462 ok_(__FILE__,
line)(*(
DWORD*)ppolicy == expolicy,
"policy = %x, expected %x\n", *(
DWORD*)ppolicy, expolicy);
1481 &ppolicy, &policy_size, (
BYTE*)&
cs,
sizeof(
cs), 0);
1490 SET_EXPECT(AXSetInterfaceSafetyOptions_IDispatchEx_caller_secmgr);
1492 &ppolicy, &policy_size, (
BYTE*)&
cs,
sizeof(
cs), 0);
1496 CHECK_CALLED(AXSetInterfaceSafetyOptions_IDispatchEx_caller_secmgr);
1502 cs.dwFlags = CONFIRMSAFETYACTION_LOADOBJECT;
1507 &ppolicy, &policy_size, (
BYTE*)&
cs,
sizeof(
cs), 0);
1516 SET_EXPECT(AXSetInterfaceSafetyOptions_IDispatchEx_caller_secmgr);
1517 SET_EXPECT(AXSetInterfaceSafetyOptions_IDispatch_data);
1519 &ppolicy, &policy_size, (
BYTE*)&
cs,
sizeof(
cs), 0);
1523 CHECK_CALLED(AXSetInterfaceSafetyOptions_IDispatchEx_caller_secmgr);
1524 CHECK_CALLED(AXSetInterfaceSafetyOptions_IDispatch_data);
1537 hres = IActiveScriptSite_QueryInterface(
site, &IID_IServiceProvider, (
void**)&
sp);
1538 ok(
hres ==
S_OK,
"Could not get IServiceProvider iface: %08x\n",
hres);
1540 hres = IServiceProvider_QueryService(
sp, &SID_SInternetHostSecurityManager,
1541 &IID_IInternetHostSecurityManager, (
void**)&sec_mgr);
1542 IServiceProvider_Release(
sp);
1545 hres = IInternetHostSecurityManager_ProcessUrlAction(sec_mgr, URLACTION_ACTIVEX_RUN, (
BYTE*)&
policy,
sizeof(
policy),
1558 SET_EXPECT(AXSetInterfaceSafetyOptions_IDispatchEx_caller_secmgr);
1560 &ppolicy, &policy_size, (
BYTE*)&
cs,
sizeof(
cs), 0);
1564 CHECK_CALLED(AXSetInterfaceSafetyOptions_IDispatchEx_caller_secmgr);
1567 cs.dwFlags = CONFIRMSAFETYACTION_LOADOBJECT;
1571 SET_EXPECT(AXSetInterfaceSafetyOptions_IDispatchEx_caller_secmgr);
1572 SET_EXPECT(AXSetInterfaceSafetyOptions_IDispatch_data);
1574 &ppolicy, &policy_size, (
BYTE*)&
cs,
sizeof(
cs), 0);
1578 CHECK_CALLED(AXSetInterfaceSafetyOptions_IDispatchEx_caller_secmgr);
1579 if(called_AXSetInterfaceSafetyOptions_IDispatch_data) {
1580 CHECK_CALLED(AXSetInterfaceSafetyOptions_IDispatch_data);
1582 win_skip(
"CONFIRMSAFETYACTION_LOADOBJECT flag not supported\n");
1584 CLEAR_CALLED(AXSetInterfaceSafetyOptions_IDispatch_data);
1593 &ppolicy, &policy_size, (
BYTE*)&
cs,
sizeof(
cs), 0);
1599 cs.dwFlags = CONFIRMSAFETYACTION_LOADOBJECT;
1604 &ppolicy, &policy_size, (
BYTE*)&
cs,
sizeof(
cs), 0);
1621 skip(
"Could not set safety registry\n");
1631 SET_EXPECT(AXSetInterfaceSafetyOptions_IDispatchEx_caller_secmgr);
1632 SET_EXPECT(AXSetInterfaceSafetyOptions_IDispatch_caller);
1634 &ppolicy, &policy_size, (
BYTE*)&
cs,
sizeof(
cs), 0);
1638 CHECK_CALLED(AXSetInterfaceSafetyOptions_IDispatchEx_caller_secmgr);
1639 CHECK_CALLED(AXSetInterfaceSafetyOptions_IDispatch_caller);
1647 SET_EXPECT(AXSetInterfaceSafetyOptions_IDispatchEx_caller_secmgr);
1648 SET_EXPECT(AXSetInterfaceSafetyOptions_IDispatch_caller);
1650 &ppolicy, &policy_size, (
BYTE*)&
cs,
sizeof(
cs), 0);
1654 CHECK_CALLED(AXSetInterfaceSafetyOptions_IDispatchEx_caller_secmgr);
1655 CHECK_CALLED(AXSetInterfaceSafetyOptions_IDispatch_caller);
1659 cs.dwFlags = CONFIRMSAFETYACTION_LOADOBJECT;
1665 SET_EXPECT(AXSetInterfaceSafetyOptions_IDispatchEx_caller_secmgr);
1666 SET_EXPECT(AXSetInterfaceSafetyOptions_IDispatch_caller);
1668 &ppolicy, &policy_size, (
BYTE*)&
cs,
sizeof(
cs), 0);
1672 CHECK_CALLED(AXSetInterfaceSafetyOptions_IDispatchEx_caller_secmgr);
1673 CHECK_CALLED(AXSetInterfaceSafetyOptions_IDispatch_caller);
1684 SET_EXPECT(AXSetInterfaceSafetyOptions_IDispatchEx_caller);
1685 SET_EXPECT(AXSetInterfaceSafetyOptions_IDispatch_caller);
1687 &ppolicy, &policy_size, (
BYTE*)&
cs,
sizeof(
cs), 0);
1691 CHECK_CALLED(AXSetInterfaceSafetyOptions_IDispatchEx_caller);
1692 CHECK_CALLED(AXSetInterfaceSafetyOptions_IDispatch_caller);
1696 cs.dwFlags = CONFIRMSAFETYACTION_LOADOBJECT;
1704 SET_EXPECT(AXSetInterfaceSafetyOptions_IDispatchEx_caller);
1705 SET_EXPECT(AXSetInterfaceSafetyOptions_IDispatch_caller);
1706 SET_EXPECT(AXSetInterfaceSafetyOptions_IDispatch_data);
1708 &ppolicy, &policy_size, (
BYTE*)&
cs,
sizeof(
cs), 0);
1712 CHECK_CALLED(AXSetInterfaceSafetyOptions_IDispatchEx_caller);
1713 CHECK_CALLED(AXSetInterfaceSafetyOptions_IDispatch_caller);
1714 CHECK_CALLED(AXSetInterfaceSafetyOptions_IDispatch_data);
1718 IInternetHostSecurityManager_Release(sec_mgr);
1724 ok(0,
"unexpected call\n");
1741 ok(0,
"unexpected call\n");
1748 switch(dwProperty) {
1749 case SCRIPTPROP_HACK_TRIDENTEVENTSINK:
1752 ok(
V_BOOL(pvarValue) == VARIANT_TRUE,
"V_BOOL(pvarValue)=%x\n",
V_BOOL(pvarValue));
1754 case SCRIPTPROP_INVOKEVERSIONING:
1756 ok(
V_VT(pvarValue) ==
VT_I4,
"V_VT(pvarValue)=%d\n",
V_VT(pvarValue));
1757 ok(
V_I4(pvarValue) == 1,
"V_I4(pvarValue)=%d\n",
V_I4(pvarValue));
1759 case SCRIPTPROP_ABBREVIATE_GLOBALNAME_RESOLUTION:
1760 CHECK_EXPECT(SetProperty_ABBREVIATE_GLOBALNAME_RESOLUTION);
1762 ok(
V_BOOL(pvarValue) == VARIANT_TRUE,
"V_BOOL(pvarValue)=%x\n",
V_BOOL(pvarValue));
1767 ok(0,
"unexpected property %x\n", dwProperty);
1771 ok(!pvarIndex,
"pvarIndex != NULL\n");
1772 ok(pvarValue !=
NULL,
"pvarValue == NULL\n");
1790 ok(0,
"unexpected call\n");
1805 LPCOLESTR pstrCode, LPCOLESTR pstrFormalParams, LPCOLESTR pstrProcedureName,
1806 LPCOLESTR pstrItemName,
IUnknown *punkContext, LPCOLESTR pstrDelimiter,
1809 ok(0,
"unexpected call\n");
1825 ok(0,
"unexpected call\n");
1846 LPCOLESTR pstrDefaultName, LPCOLESTR pstrCode, LPCOLESTR pstrItemName,
1847 LPCOLESTR pstrSubItemName, LPCOLESTR pstrEventName, LPCOLESTR pstrDelimiter,
1849 BSTR *pbstrName, EXCEPINFO *pexcepinfo)
1851 ok(0,
"unexpected call\n");
1857 DISPID propput_arg = DISPID_PROPERTYPUT;
1858 DISPPARAMS dp = {
var, &propput_arg, 1, 1};
1866 DISPPARAMS dp = {
NULL};
1884 hres = IDispatchEx_GetDispID(
obj,
str, fdexNameCaseSensitive, &
id);
1889 memset(&dp, 0,
sizeof(dp));
1890 memset(&ei, 0,
sizeof(ei));
1898 hres = IDispatch_QueryInterface(disp, &IID_IDispatchEx, (
void**)&dispex);
1899 IDispatch_Release(disp);
1900 ok(
hres ==
S_OK,
"Could not get IDispatchEx iface: %08x\n",
hres);
1904 memset(&dp, 0,
sizeof(dp));
1905 memset(&ei, 0,
sizeof(ei));
1928 ok(
hres ==
S_OK,
"InvokeEx returned: %08x, expected S_OK\n",
hres);
1936 IDispatchEx_Release(dispex);
1941 DISPID last_id = DISPID_STARTENUM,
id, dyn_id;
1947 hres = IDispatchEx_GetDispID(dispex,
name, fdexNameCaseSensitive|fdexNameEnsure, &dyn_id);
1955 while(last_id != dyn_id) {
1956 hres = IDispatchEx_GetNextDispID(dispex, fdexEnumAll, last_id, &
id);
1958 ok(
id != DISPID_STARTENUM,
"id == DISPID_STARTENUM\n");
1961 hres = IDispatchEx_GetMemberName(dispex,
id, &
name);
1973 hres = IDispatchEx_GetNextDispID(dispex, 0,
id, &
id);
1975 ok(
id == DISPID_STARTENUM,
"id != DISPID_STARTENUM\n");
1997 memset(&ei, 0,
sizeof(ei));
1998 memset(&dp, 0,
sizeof(dp));
2007 IHTMLDocument2 *doc;
2013 hres = IHTMLWindow2_get_document(
window, &doc);
2016 hres = IHTMLDocument2_get_body(doc, &
elem);
2017 IHTMLDocument2_Release(doc);
2020 hres = IHTMLElement_QueryInterface(
elem, &IID_IDispatchEx, (
void**)&dispex);
2021 IHTMLElement_Release(
elem);
2022 ok(
hres ==
S_OK,
"Could not get IDispatchEx iface: %08x\n",
hres);
2027 V_I4(&
v) = 0xf0f0f0;
2039 IDispatchEx_Release(dispex);
2042#define test_elem_disabled(a,b) _test_elem_disabled(__LINE__,a,b)
2045 IHTMLElement3 *elem3;
2049 hres = IHTMLElement_QueryInterface(
elem, &IID_IHTMLElement3, (
void**)&elem3);
2052 hres = IHTMLElement3_get_disabled(elem3, &
b);
2054 ok_(__FILE__,
line)(
b == exb,
"disabled = %x, expected %x\n",
b, exb);
2056 IHTMLElement3_Release(elem3);
2061 IHTMLDocument2 *doc;
2067 hres = IHTMLWindow2_get_document(
window, &doc);
2070 hres = IHTMLDocument2_get_body(doc, &
elem);
2071 IHTMLDocument2_Release(doc);
2074 hres = IHTMLElement_QueryInterface(
elem, &IID_IDispatchEx, (
void**)&dispex);
2075 ok(
hres ==
S_OK,
"Could not get IDispatchEx iface: %08x\n",
hres);
2101 IHTMLElement_Release(
elem);
2102 IDispatchEx_Release(dispex);
2111 hres = IActiveScriptSite_QueryInterface(
site, &IID_IActiveScriptSiteUIControl, (
void**)&ui_control);
2113 win_skip(
"IActiveScriptSiteUIControl not supported\n");
2116 ok(
hres ==
S_OK,
"Could not get IActiveScriptSiteUIControl: %08x\n",
hres);
2122 IActiveScriptSiteUIControl_Release(ui_control);
2131 hres = IActiveScriptSite_QueryInterface(
site, &IID_IServiceProvider, (
void**)&
sp);
2132 ok(
hres ==
S_OK,
"Could not get IServiceProvider iface: %08x\n",
hres);
2134 hres = IServiceProvider_QueryService(
sp, &SID_SContainerDispatch, &IID_IHTMLDocument, (
void**)&unk);
2135 ok(
hres ==
S_OK,
"Could not get SID_SContainerDispatch service: %08x\n",
hres);
2136 IUnknown_Release(unk);
2138 IServiceProvider_Release(
sp);
2145 IOmNavigator *navigator;
2154 static const WCHAR documentW[] = {
'd',
'o',
'c',
'u',
'm',
'e',
'n',
't',0};
2155 static const WCHAR testW[] = {
't',
'e',
's',
't',0};
2156 static const WCHAR funcW[] = {
'f',
'u',
'n',
'c',0};
2169 memset(&dp, 0,
sizeof(dp));
2170 memset(&ei, 0,
sizeof(ei));
2177 hres = IDispatch_QueryInterface(
V_DISPATCH(&
var), &IID_IDispatchEx, (
void**)&document);
2182 hres = IDispatchEx_GetDispID(document, tmp, fdexNameCaseSensitive, &
id);
2184 hres = IDispatchEx_GetDispID(document, tmp, fdexNameCaseSensitive | fdexNameImplicit, &
id);
2190 hres = IDispatchEx_GetDispID(document, tmp, fdexNameCaseSensitive|fdexNameEnsure, &
id);
2193 ok(
id,
"id == 0\n");
2201 hres = IDispatchEx_GetDispID(document, tmp, fdexNameCaseSensitive, &
id);
2205 hres = IDispatchEx_DeleteMemberByDispID(document,
id);
2209 memset(&dp, 0,
sizeof(dp));
2210 memset(&ei, 0,
sizeof(ei));
2222 memset(&dp, 0,
sizeof(dp));
2223 memset(&ei, 0,
sizeof(ei));
2229 memset(&dp, 0,
sizeof(dp));
2230 memset(&ei, 0,
sizeof(ei));
2239 memset(&dp, 0,
sizeof(dp));
2240 memset(&ei, 0,
sizeof(ei));
2251 memset(&dp, 0,
sizeof(dp));
2252 memset(&ei, 0,
sizeof(ei));
2258 unk = (
void*)0xdeadbeef;
2261 ok(!unk,
"unk=%p, expected NULL\n", unk);
2265 hres = IDispatchEx_GetDispID(document, tmp, fdexNameCaseSensitive|fdexNameEnsure, &
id);
2268 ok(
id,
"id == 0\n");
2273 dp.rgdispidNamedArgs =
NULL;
2280 memset(&dp, 0,
sizeof(dp));
2281 memset(&ei, 0,
sizeof(ei));
2293 ok(
V_I4(&
var) == 100,
"V_I4(&var) == NULL\n");
2295 IDispatchEx_Release(document);
2298 ok(
hres ==
S_OK,
"Could not get IHTMLWindow2 iface: %08x\n",
hres);
2300 hres = IHTMLWindow2_get_navigator(
window, &navigator);
2303 hres = IOmNavigator_QueryInterface(navigator, &IID_IDispatchEx, (
void**)&dispex);
2304 IOmNavigator_Release(navigator);
2305 ok(
hres ==
S_OK,
"Could not get IDispatchEx iface: %08x\n",
hres);
2312 IHTMLWindow2_Release(
window);
2315 hres = IDispatchEx_DeleteMemberByName(dispex, tmp, fdexNameCaseSensitive);
2318 IDispatchEx_Release(dispex);
2324 tmp =
a2bstr(
"testProp");
2332 tmp =
a2bstr(
"testProp");
2340 memset(&ei, 0,
sizeof(ei));
2341 memset(&dp, 0,
sizeof(dp));
2350 tmp =
a2bstr(
"testProp2");
2351 hres = IDispatchEx_GetDispID(
window_dispex, tmp, fdexNameCaseSensitive|fdexNameEnsure, &
id);
2359 hres = IDispatchEx_DeleteMemberByName(
window_dispex, tmp, fdexNameCaseSensitive);
2370 LPCOLESTR pstrCode, LPCOLESTR pstrItemName,
IUnknown *punkContext,
2371 LPCOLESTR pstrDelimiter,
CTXARG_T dwSourceContextCookie,
ULONG ulStartingLine,
2374 ok(pvarResult !=
NULL,
"pvarResult == NULL\n");
2375 ok(pexcepinfo !=
NULL,
"pexcepinfo == NULL\n");
2377 if(!
strcmp_wa(pstrCode,
"execScript call")) {
2379 ok(!pstrItemName,
"pstrItemName = %s\n",
wine_dbgstr_w(pstrItemName));
2384 V_I4(pvarResult) = 10;
2386 }
else if(!
strcmp_wa(pstrCode,
"simple script")) {
2390 ok(
dwFlags == (SCRIPTTEXT_ISVISIBLE|SCRIPTTEXT_HOSTMANAGESSOURCE),
"dwFlags = %x\n",
dwFlags);
2460 IActiveScriptSiteDebug *
debug;
2470 hres = IActiveScriptSite_QueryInterface(
pass, &IID_IActiveScriptSiteInterruptPoll, (
void**)&
poll);
2471 ok(
hres ==
S_OK,
"Could not get IActiveScriptSiteInterruptPoll interface: %08x\n",
hres);
2473 IActiveScriptSiteInterruptPoll_Release(
poll);
2475 hres = IActiveScriptSite_GetLCID(
pass, &lcid);
2481 hres = IActiveScriptSite_QueryInterface(
pass, &IID_IActiveScriptSiteDebug, (
void**)&
debug);
2482 ok(
hres ==
S_OK,
"Could not get IActiveScriptSiteDebug interface: %08x\n",
hres);
2486 hres = IActiveScriptSite_QueryInterface(
pass, &IID_ICanHandleException, (
void**)&canexpection);
2489 hres = IActiveScriptSite_QueryInterface(
pass, &IID_IServiceProvider, (
void**)&service);
2490 ok(
hres ==
S_OK,
"Could not get IServiceProvider interface: %08x\n",
hres);
2492 IServiceProvider_Release(service);
2495 IActiveScriptSite_AddRef(
site);
2502 ok(0,
"unexpected call\n");
2521 ok(0,
"unexpected state %d\n",
ss);
2552 static const WCHAR windowW[] = {
'w',
'i',
'n',
'd',
'o',
'w',0};
2554 static const IID unknown_iid = {0x719C3050,0xF9D3,0x11CF,{0xA4,0x93,0x00,0x40,0x05,0x23,0xA8,0xA0}};
2559 ok(
dwFlags == (SCRIPTITEM_ISVISIBLE|SCRIPTITEM_ISSOURCE|SCRIPTITEM_GLOBALMEMBERS),
"dwFlags=%x\n",
dwFlags);
2563 ok(unk !=
NULL,
"unk == NULL\n");
2566 ok(
hres ==
S_OK,
"Could not get IDispatch interface: %08x\n",
hres);
2568 IDispatch_Release(disp);
2570 hres = IUnknown_QueryInterface(unk, &unknown_iid, (
void**)&unk2);
2573 IUnknown_Release(unk2);
2576 ok(
hres ==
S_OK,
"Could not get IDispatchEx interface: %08x\n",
hres);
2578 IUnknown_Release(unk);
2585 ok(0,
"unexpected call\n");
2606 ok(0,
"unexpected call\n");
2613 ok(0,
"unexpected call\n");
2620 ok(0,
"unexpected call\n");
2627 ok(0,
"unexpected call\n");
2633 ok(0,
"unexpected call\n");
2690 ok(!outer,
"outer = %p\n", outer);
2698 ok(0,
"unexpected call\n");
2713 "<html><head></head><body>"
2714 "<div id=\"divid\"></div>"
2715 "<script language=\"TestScript\">simple script</script>"
2725 hres = IHTMLDocument2_get_parentWindow(doc, &
window);
2747 IHTMLWindow2_Release(
window);
2752 IHTMLDocument2 *doc;
2762 SET_EXPECT(SetProperty_HACK_TRIDENTEVENTSINK);
2768 SET_EXPECT(SetProperty_ABBREVIATE_GLOBALNAME_RESOLUTION);
2791 IActiveScriptSite_Release(
site);
2798 IHTMLDocument2_Release(doc);
2809 IHTMLDocument2 *doc;
2814 static const char res[] =
"res://";
2834 hres = IHTMLDocument2_QueryInterface(doc, &IID_IPersistMoniker, (
void**)&persist);
2835 ok(
hres ==
S_OK,
"Could not get IPersistMoniker iface: %08x\n",
hres);
2840 IMoniker_Release(mon);
2841 IPersistMoniker_Release(persist);
2853 IHTMLDocument2_Release(doc);
2865 win_skip(
"Skipping nav_test.html on IE older than 9 (for broken ieframe onload).\n");
2889 ok(
hres ==
S_OK,
"Could not register script engine: %08x\n",
hres);
2901 static const CHAR szHTMLDocumentTest[] =
"HTMLDocumentTest";
2912 return CreateWindowA(szHTMLDocumentTest, szHTMLDocumentTest,
2919 IHTMLDocument2 *doc;
2920 IHTMLDocument5 *doc5;
2921 IHTMLDocument7 *doc7;
2928 hres = IHTMLDocument2_QueryInterface(doc, &IID_IHTMLDocument7, (
void**)&doc7);
2931 IHTMLDocument7_Release(doc7);
2936 hres = IHTMLDocument2_QueryInterface(doc, &IID_IHTMLDocument5, (
void**)&doc5);
2938 IHTMLDocument5_Release(doc5);
2940 IHTMLDocument2_Release(doc);
2955 skip(
"Could not register TestScript engine\n");
2959 skip(
"IE running in Enhanced Security Configuration\n");
ACPI_SIZE strlen(const char *String)
enum tagSCRIPTUICHANDLING SCRIPTUICHANDLING
enum tagSCRIPTTHREADSTATE SCRIPTTHREADSTATE
@ SCRIPTUICHANDLING_ALLOW
@ SCRIPTSTATE_INITIALIZED
@ SCRIPTSTATE_DISCONNECTED
enum tagSCRIPTSTATE SCRIPTSTATE
const GUID IID_IClassFactory
#define RegCloseKey(hKey)
const CLSID CLSID_IdentityUnmarshal
LONG WINAPI RegCreateKeyA(HKEY hKey, LPCSTR lpSubKey, PHKEY phkResult)
LONG WINAPI RegSetValueA(HKEY hKeyOriginal, LPCSTR lpSubKey, DWORD dwType, LPCSTR lpData, DWORD cbData)
LONG WINAPI RegDeleteKeyA(_In_ HKEY hKey, _In_ LPCSTR lpSubKey)
#define WideCharToMultiByte
#define MultiByteToWideChar
DWORD WINAPI GetModuleFileNameA(HINSTANCE hModule, LPSTR lpFilename, DWORD nSize)
int WINAPI lstrcmpW(LPCWSTR str1, LPCWSTR str2)
int WINAPI lstrcmpA(LPCSTR str1, LPCSTR str2)
static const WCHAR windowW[]
static const WCHAR documentW[]
static REFPROPVARIANT PROPVAR_CHANGE_FLAGS VARTYPE vt
HRESULT WINAPI CoRegisterClassObject(REFCLSID rclsid, LPUNKNOWN pUnk, DWORD dwClsContext, DWORD flags, LPDWORD lpdwRegister)
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 CreateStreamOnHGlobal(HGLOBAL hGlobal, BOOL fDeleteOnRelease, LPSTREAM *ppstm)
#define INTERNET_MAX_URL_LENGTH
WDF_INTERRUPT_POLICY policy
GLboolean GLboolean GLboolean b
GLenum GLuint GLenum GLsizei const GLchar * buf
HGLOBAL NTAPI GlobalAlloc(UINT uFlags, SIZE_T dwBytes)
#define DISPID_READYSTATE
VOID WINAPI CoTaskMemFree(LPVOID ptr)
REFIID LPVOID DWORD_PTR dw
static const WCHAR testW[]
LPSTR WINAPI lstrcpyA(LPSTR lpString1, LPCSTR lpString2)
LPSTR WINAPI lstrcatA(LPSTR lpString1, LPCSTR lpString2)
int WINAPI lstrlenA(LPCSTR lpString)
#define memcpy(s1, s2, n)
static const char * test_name
static const char * strw(LPCWSTR x)
static IHTMLWindow2 * window
static HRESULT WINAPI ServiceProvider_QueryService(IServiceProvider *iface, REFGUID guidService, REFIID riid, void **ppv)
static HRESULT WINAPI InPlaceFrame_InsertMenus(IOleInPlaceFrame *iface, HMENU hmenuShared, LPOLEMENUGROUPWIDTHS lpMenuWidths)
static void test_sp(void)
static const IDocHostUIHandler2Vtbl DocHostUIHandlerVtbl
static void test_arg_conv(IHTMLWindow2 *window)
static HRESULT WINAPI ClassFactory_CreateInstance(IClassFactory *iface, IUnknown *outer, REFIID riid, void **ppv)
static const char simple_script_str[]
static void test_security_reg(IInternetHostSecurityManager *sec_mgr, DWORD policy_caller, DWORD policy_load)
static const IOleInPlaceFrameVtbl InPlaceFrameVtbl
static const GUID CLSID_TestActiveX
static HRESULT WINAPI DocHostUIHandler_EnableModeless(IDocHostUIHandler2 *iface, BOOL fEnable)
static IOleDocumentSite DocumentSite
static IPropertyNotifySinkVtbl PropertyNotifySinkVtbl
static HRESULT WINAPI InPlaceSite_OnPosRectChange(IOleInPlaceSite *iface, LPCRECT lprcPosRect)
#define CLEAR_CALLED(func)
static HRESULT WINAPI ActiveScript_GetScriptThreadID(IActiveScript *iface, DWORD dwWin32ThreadId, SCRIPTTHREADID *pstidThread)
static void test_default_arg_conv(IHTMLWindow2 *window)
static HRESULT WINAPI DocHostUIHandler_ShowUI(IDocHostUIHandler2 *iface, DWORD dwID, IOleInPlaceActiveObject *pActiveObject, IOleCommandTarget *pCommandTarget, IOleInPlaceFrame *pFrame, IOleInPlaceUIWindow *pDoc)
static HRESULT WINAPI AXObjectSafety_QueryInterface(IObjectSafety *iface, REFIID riid, void **ppv)
static HRESULT WINAPI DocHostUIHandler_HideUI(IDocHostUIHandler2 *iface)
static void test_security(void)
static IServiceProvider caller_sp
static HRESULT WINAPI ClientSite_RequestNewObjectLayout(IOleClientSite *iface)
static HRESULT WINAPI InPlaceFrame_EnableModeless(IOleInPlaceFrame *iface, BOOL fEnable)
static HRESULT WINAPI DocHostUIHandler_ShowContextMenu(IDocHostUIHandler2 *iface, DWORD dwID, POINT *ppt, IUnknown *pcmdtReserved, IDispatch *pdicpReserved)
static void test_nextdispid(IDispatchEx *dispex)
static BOOL skip_loadobject_tests
static ULONG WINAPI ActiveScript_Release(IActiveScript *iface)
static ULONG WINAPI DocumentSite_Release(IOleDocumentSite *iface)
static ULONG WINAPI ActiveScriptProperty_Release(IActiveScriptProperty *iface)
static HRESULT WINAPI ClassFactory_LockServer(IClassFactory *iface, BOOL dolock)
static HRESULT WINAPI externalDisp_GetDispID(IDispatchEx *iface, BSTR bstrName, DWORD grfdex, DISPID *pid)
static HRESULT WINAPI ActiveScript_SetScriptState(IActiveScript *iface, SCRIPTSTATE ss)
static const IOleDocumentSiteVtbl DocumentSiteVtbl
static ULONG WINAPI InPlaceSite_AddRef(IOleInPlaceSite *iface)
static ULONG WINAPI ServiceProvider_Release(IServiceProvider *iface)
static HRESULT WINAPI DocHostUIHandler_UpdateUI(IDocHostUIHandler2 *iface)
static HRESULT WINAPI DocHostUIHandler_FilterDataObject(IDocHostUIHandler2 *iface, IDataObject *pDO, IDataObject **ppPORet)
#define DISPID_SCRIPT_TESTPROP
static HRESULT WINAPI PropertyNotifySink_OnChanged(IPropertyNotifySink *iface, DISPID dispID)
static const IActiveScriptParseVtbl ActiveScriptParseVtbl
static ULONG WINAPI DocHostUIHandler_Release(IDocHostUIHandler2 *iface)
static const GUID CLSID_TestScript
static IOleInPlaceFrame InPlaceFrame
static const IOleInPlaceSiteVtbl InPlaceSiteVtbl
static HRESULT WINAPI InPlaceSite_OnUIDeactivate(IOleInPlaceSite *iface, BOOL fUndoable)
static IOleClientSite ClientSite
static HRESULT WINAPI InPlaceSite_CanInPlaceActivate(IOleInPlaceSite *iface)
static HRESULT WINAPI ActiveScript_GetScriptDispatch(IActiveScript *iface, LPCOLESTR pstrItemName, IDispatch **ppdisp)
#define DISPID_EXTERNAL_TODO_WINE_OK
static const IClassFactoryVtbl ClassFactoryVtbl
static ULONG WINAPI ActiveScriptParseProcedure_AddRef(IActiveScriptParseProcedure2 *iface)
static HRESULT WINAPI InPlaceFrame_GetWindow(IOleInPlaceFrame *iface, HWND *phwnd)
static HRESULT WINAPI ClientSite_ShowObject(IOleClientSite *iface)
static HRESULT WINAPI ActiveScriptProperty_SetProperty(IActiveScriptProperty *iface, DWORD dwProperty, VARIANT *pvarIndex, VARIANT *pvarValue)
#define DISPID_SCRIPT_TESTPROP2
static HRESULT WINAPI ActiveScriptParse_AddScriptlet(IActiveScriptParse *iface, LPCOLESTR pstrDefaultName, LPCOLESTR pstrCode, LPCOLESTR pstrItemName, LPCOLESTR pstrSubItemName, LPCOLESTR pstrEventName, LPCOLESTR pstrDelimiter, CTXARG_T dwSourceContextCookie, ULONG ulStartingLineNumber, DWORD dwFlags, BSTR *pbstrName, EXCEPINFO *pexcepinfo)
static HRESULT WINAPI DispatchEx_GetMemberProperties(IDispatchEx *iface, DISPID id, DWORD grfdexFetch, DWORD *pgrfdex)
static ULONG WINAPI ClientSite_AddRef(IOleClientSite *iface)
static ULONG WINAPI DispatchEx_Release(IDispatchEx *iface)
static ULONG WINAPI ObjectSafety_AddRef(IObjectSafety *iface)
static const IActiveScriptPropertyVtbl ActiveScriptPropertyVtbl
static HRESULT WINAPI DispatchEx_GetIDsOfNames(IDispatchEx *iface, REFIID riid, LPOLESTR *rgszNames, UINT cNames, LCID lcid, DISPID *rgDispId)
static BOOL init_registry(BOOL init)
static BOOL set_safe_reg(BOOL safe_call, BOOL safe_data)
static IActiveScriptProperty ActiveScriptProperty
#define IActiveScriptParseProcedure2Vtbl
static HRESULT WINAPI DispatchEx_DeleteMemberByDispID(IDispatchEx *iface, DISPID id)
static HRESULT WINAPI DispatchEx_GetNameSpaceParent(IDispatchEx *iface, IUnknown **ppunk)
static LRESULT WINAPI wnd_proc(HWND hwnd, UINT msg, WPARAM wParam, LPARAM lParam)
static HRESULT WINAPI DocHostUIHandler_ResizeBorder(IDocHostUIHandler2 *iface, LPCRECT prcBorder, IOleInPlaceUIWindow *pUIWindow, BOOL fRameWindow)
static HRESULT ax_setopt_disp_data_hres
static HRESULT WINAPI ActiveScriptParseProcedure_ParseProcedureText(IActiveScriptParseProcedure2 *iface, LPCOLESTR pstrCode, LPCOLESTR pstrFormalParams, LPCOLESTR pstrProcedureName, LPCOLESTR pstrItemName, IUnknown *punkContext, LPCOLESTR pstrDelimiter, CTXARG_T dwSourceContextCookie, ULONG ulStartingLineNumber, DWORD dwFlags, IDispatch **ppdisp)
static HRESULT WINAPI DispatchEx_GetDispID(IDispatchEx *iface, BSTR bstrName, DWORD grfdex, DISPID *pid)
static HRESULT WINAPI InPlaceFrame_GetBorder(IOleInPlaceFrame *iface, LPRECT lprectBorder)
static HRESULT QueryInterface(REFIID, void **)
#define test_elem_disabled(a, b)
static HRESULT WINAPI DispatchEx_Invoke(IDispatchEx *iface, DISPID dispIdMember, REFIID riid, LCID lcid, WORD wFlags, DISPPARAMS *pDispParams, VARIANT *pVarResult, EXCEPINFO *pExcepInfo, UINT *puArgErr)
static HRESULT WINAPI ObjectSafety_QueryInterface(IObjectSafety *iface, REFIID riid, void **ppv)
static HRESULT WINAPI ActiveScript_GetCurrentScriptThreadID(IActiveScript *iface, SCRIPTTHREADID *pstridThread)
static HRESULT WINAPI scriptDisp_GetDispID(IDispatchEx *iface, BSTR bstrName, DWORD grfdex, DISPID *pid)
static HRESULT WINAPI scriptDisp_InvokeEx(IDispatchEx *iface, DISPID id, LCID lcid, WORD wFlags, DISPPARAMS *pdp, VARIANT *pvarRes, EXCEPINFO *pei, IServiceProvider *pspCaller)
#define CHECK_EXPECT(func)
static HRESULT ax_setopt_disp_caller_hres
static HRESULT WINAPI InPlaceSite_OnInPlaceActivate(IOleInPlaceSite *iface)
static void load_doc(IHTMLDocument2 *doc, const char *str)
static ULONG WINAPI PropertyNotifySink_AddRef(IPropertyNotifySink *iface)
static HRESULT ax_getopt_hres
void(* domtest_t)(IHTMLDocument2 *)
static BOOL check_ie(void)
static ULONG WINAPI InPlaceFrame_Release(IOleInPlaceFrame *iface)
static void run_js_script(const char *test_name)
static HRESULT WINAPI InPlaceSite_ContextSensitiveHelp(IOleInPlaceSite *iface, BOOL fEnterMode)
static ULONG WINAPI ClassFactory_Release(IClassFactory *iface)
#define DEFINE_EXPECT(func)
static ULONG WINAPI ClientSite_Release(IOleClientSite *iface)
static HRESULT WINAPI DispatchEx_GetMemberName(IDispatchEx *iface, DISPID id, BSTR *pbstrName)
static void test_simple_script(void)
static HRESULT WINAPI DocHostUIHandler_TranslateAccelerator(IDocHostUIHandler2 *iface, LPMSG lpMsg, const GUID *pguidCmdGroup, DWORD nCmdID)
static HRESULT WINAPI DocHostUIHandler_GetExternal(IDocHostUIHandler2 *iface, IDispatch **ppDispatch)
static HRESULT WINAPI funcDisp_InvokeEx(IDispatchEx *iface, DISPID id, LCID lcid, WORD wFlags, DISPPARAMS *pdp, VARIANT *pvarRes, EXCEPINFO *pei, IServiceProvider *pspCaller)
static IDispatchEx externalDisp
static HRESULT WINAPI ActiveScriptParse_InitNew(IActiveScriptParse *iface)
static ULONG WINAPI ActiveScript_AddRef(IActiveScript *iface)
static HRESULT WINAPI ActiveScriptParse_ParseScriptText(IActiveScriptParse *iface, LPCOLESTR pstrCode, LPCOLESTR pstrItemName, IUnknown *punkContext, LPCOLESTR pstrDelimiter, CTXARG_T dwSourceContextCookie, ULONG ulStartingLine, DWORD dwFlags, VARIANT *pvarResult, EXCEPINFO *pexcepinfo)
static ULONG WINAPI DocHostUIHandler_AddRef(IDocHostUIHandler2 *iface)
static BSTR a2bstr(const char *str)
static HRESULT WINAPI InPlaceFrame_SetActiveObject(IOleInPlaceFrame *iface, IOleInPlaceActiveObject *pActiveObject, LPCOLESTR pszObjName)
#define DISPID_EXTERNAL_REPORTSUCCESS
static const IObjectSafetyVtbl ObjectSafetyVtbl
static void test_func(IDispatchEx *obj)
static ULONG WINAPI DocumentSite_AddRef(IOleDocumentSite *iface)
static HRESULT WINAPI InPlaceFrame_ContextSensitiveHelp(IOleInPlaceFrame *iface, BOOL fEnterMode)
#define IActiveScriptSiteDebug_Release
#define IActiveScriptParseVtbl
static HRESULT WINAPI VariantChangeType_ChangeType(IVariantChangeType *iface, VARIANT *dst, VARIANT *src, LCID lcid, VARTYPE vt)
static int strcmp_wa(LPCWSTR strw, const char *stra)
static HRESULT WINAPI DocHostUIHandler_TranslateUrl(IDocHostUIHandler2 *iface, DWORD dwTranslate, OLECHAR *pchURLIn, OLECHAR **ppchURLOut)
static IDispatchEx * window_dispex
static HRESULT WINAPI PropertyNotifySink_OnRequestEdit(IPropertyNotifySink *iface, DISPID dispID)
static IObjectSafety ObjectSafety
static HRESULT WINAPI AXObjectSafety_SetInterfaceSafetyOptions(IObjectSafety *iface, REFIID riid, DWORD dwOptionSetMask, DWORD dwEnabledOptions)
static ULONG WINAPI ActiveScriptParse_AddRef(IActiveScriptParse *iface)
static const IVariantChangeTypeVtbl VariantChangeTypeVtbl
static HRESULT WINAPI InPlaceSite_OnUIActivate(IOleInPlaceSite *iface)
static IActiveScriptParse ActiveScriptParse
static HRESULT WINAPI DocumentSite_QueryInterface(IOleDocumentSite *iface, REFIID riid, void **ppv)
#define TESTACTIVEX_CLSID
static BOOL init_key(const char *key_name, const char *def_value, BOOL init)
static IHTMLDocument2 * create_document(void)
static HRESULT WINAPI ActiveScript_Close(IActiveScript *iface)
static HRESULT WINAPI ActiveScript_QueryInterface(IActiveScript *iface, REFIID riid, void **ppv)
static ULONG WINAPI ObjectSafety_Release(IObjectSafety *iface)
#define DISPID_EXTERNAL_OK
static IDispatchExVtbl scriptDispVtbl
static HRESULT WINAPI InPlaceFrame_SetStatusText(IOleInPlaceFrame *iface, LPCOLESTR pszStatusText)
static HRESULT WINAPI DispatchEx_GetNextDispID(IDispatchEx *iface, DWORD grfdex, DISPID id, DISPID *pid)
static HRESULT WINAPI ActiveScriptParse_QueryInterface(IActiveScriptParse *iface, REFIID riid, void **ppv)
static ULONG WINAPI VariantChangeType_Release(IVariantChangeType *iface)
static IDispatchExVtbl externalDispVtbl
#define CHECK_EXPECT2(func)
static HRESULT WINAPI InPlaceFrame_SetMenu(IOleInPlaceFrame *iface, HMENU hmenuShared, HOLEMENU holemenu, HWND hwndActiveObject)
const GUID GUID_CUSTOM_CONFIRMOBJECTSAFETY
static HRESULT WINAPI ClientSite_SaveObject(IOleClientSite *iface)
static HRESULT dispex_propput(IDispatchEx *obj, DISPID id, DWORD flags, VARIANT *var, IServiceProvider *caller_sp)
static HRESULT WINAPI InPlaceSite_GetWindow(IOleInPlaceSite *iface, HWND *phwnd)
static IDispatch * script_disp
static HRESULT WINAPI DispatchEx_QueryInterface(IDispatchEx *iface, REFIID riid, void **ppv)
static HRESULT WINAPI ActiveScript_GetScriptThreadState(IActiveScript *iface, SCRIPTTHREADID stidThread, SCRIPTTHREADSTATE *pstsState)
static IActiveScriptSite * site
static HRESULT WINAPI InPlaceSite_GetWindowContext(IOleInPlaceSite *iface, IOleInPlaceFrame **ppFrame, IOleInPlaceUIWindow **ppDoc, LPRECT lprcPosRect, LPRECT lprcClipRect, LPOLEINPLACEFRAMEINFO lpFrameInfo)
static void test_script_run(void)
static HRESULT WINAPI ClassFactory_QueryInterface(IClassFactory *iface, REFIID riid, void **ppv)
static ULONG WINAPI ActiveScriptParse_Release(IActiveScriptParse *iface)
static HRESULT WINAPI ActiveScript_Clone(IActiveScript *iface, IActiveScript **ppscript)
static IDispatchEx scriptDisp
static HRESULT WINAPI ActiveScriptProperty_QueryInterface(IActiveScriptProperty *iface, REFIID riid, void **ppv)
static const IActiveScriptVtbl ActiveScriptVtbl
static HRESULT WINAPI AXObjectSafety_GetInterfaceSafetyOptions(IObjectSafety *iface, REFIID riid, DWORD *pdwSupportedOptions, DWORD *pdwEnabledOptions)
static HWND container_hwnd
static const IActiveScriptParseProcedure2Vtbl ActiveScriptParseProcedureVtbl
static HRESULT WINAPI DocHostUIHandler_OnFrameWindowActivate(IDocHostUIHandler2 *iface, BOOL fActivate)
static HRESULT WINAPI InPlaceSite_DeactivateAndUndo(IOleInPlaceSite *iface)
static ULONG WINAPI InPlaceSite_Release(IOleInPlaceSite *iface)
static ULONG WINAPI DispatchEx_AddRef(IDispatchEx *iface)
static IOleDocumentView * view
static ULONG WINAPI PropertyNotifySink_Release(IPropertyNotifySink *iface)
static HRESULT WINAPI InPlaceSite_QueryInterface(IOleInPlaceSite *iface, REFIID riid, void **ppv)