100{
104
106
107
108
109 hres = IInternetSecurityManager_ProcessUrlAction(
This->basedoc.window->secmgr,
url, URLACTION_SCRIPT_SAFE_ACTIVEX,
112 *
ret = URLPOLICY_DISALLOW;
114 }
115
116 hres = IUnknown_QueryInterface(
cs->pUnk, &IID_IObjectSafety, (
void**)&obj_safety);
118 hres = IObjectSafety_GetInterfaceSafetyOptions(obj_safety, &IID_IDispatchEx, &supported_opts, &enabled_opts);
120 supported_opts = 0;
121
122 enabled_opts = INTERFACESAFE_FOR_UNTRUSTED_CALLER;
123 if(supported_opts & INTERFACE_USES_SECURITY_MANAGER)
124 enabled_opts |= INTERFACE_USES_SECURITY_MANAGER;
125
126 hres = IObjectSafety_SetInterfaceSafetyOptions(obj_safety, &IID_IDispatchEx, enabled_opts, enabled_opts);
128 enabled_opts &= ~INTERFACE_USES_SECURITY_MANAGER;
129 hres = IObjectSafety_SetInterfaceSafetyOptions(obj_safety, &
IID_IDispatch, enabled_opts, enabled_opts);
130 }
131 IObjectSafety_Release(obj_safety);
132
134 *
ret = URLPOLICY_DISALLOW;
136 }
137 }else {
138 CATID scripting_catid = CATID_SafeForScripting;
139
142 &IID_ICatInformation, (
void**)&
This->catmgr);
145 }
146
147 hres = ICatInformation_IsClassOfCategories(
This->catmgr, &
cs->clsid, 1, &scripting_catid, 0,
NULL);
150
152 *
ret = URLPOLICY_DISALLOW;
154 }
155 }
156
157 if(
cs->dwFlags & CONFIRMSAFETYACTION_LOADOBJECT)
159
160 *
ret = URLPOLICY_ALLOW;
162}
WINBASEAPI _Check_return_ _Out_ AppPolicyProcessTerminationMethod * policy
HRESULT WINAPI DECLSPEC_HOTPATCH CoCreateInstance(REFCLSID rclsid, LPUNKNOWN pUnkOuter, DWORD dwClsContext, REFIID iid, LPVOID *ppv)
static HRESULT confirm_safety_load(HTMLDocumentNode *This, struct CONFIRMSAFETY *cs, DWORD *ret)