static HRESULT WINAPI ObjectSafety_GetInterfaceSafetyOptions(IObjectSafety *iface, REFIID riid, DWORD *pdwSupportedOptions, DWORD *pdwEnabledOptions) { HTMLDocument *This = impl_from_IObjectSafety(iface); FIXME("(%p)->(%s %p %p)\n", This, debugstr_guid(riid), pdwSupportedOptions, pdwEnabledOptions); return E_NOTIMPL; }
static HRESULT WINAPI JScriptSafety_SetInterfaceSafetyOptions(IObjectSafety *iface, REFIID riid, DWORD dwOptionSetMask, DWORD dwEnabledOptions) { JScript *This = impl_from_IObjectSafety(iface); TRACE("(%p)->(%s %x %x)\n", This, debugstr_guid(riid), dwOptionSetMask, dwEnabledOptions); if(dwOptionSetMask & ~SUPPORTED_OPTIONS) return E_FAIL; This->safeopt = (dwEnabledOptions & dwOptionSetMask) | (This->safeopt & ~dwOptionSetMask) | INTERFACE_USES_DISPEX; return S_OK; }
static HRESULT WINAPI httprequest_Safety_SetInterfaceSafetyOptions(IObjectSafety *iface, REFIID riid, DWORD mask, DWORD enabled) { httprequest *This = impl_from_IObjectSafety(iface); TRACE("(%p)->(%s %x %x)\n", This, debugstr_guid(riid), mask, enabled); if ((mask & ~SAFETY_SUPPORTED_OPTIONS) != 0) return E_FAIL; This->safeopt = (This->safeopt & ~mask) | (mask & enabled); return S_OK; }
static HRESULT WINAPI ObjectSafety_SetInterfaceSafetyOptions(IObjectSafety *iface, REFIID riid, DWORD dwOptionSetMask, DWORD dwEnabledOptions) { HTMLDocument *This = impl_from_IObjectSafety(iface); FIXME("(%p)->(%s %x %x)\n", This, debugstr_guid(riid), dwOptionSetMask, dwEnabledOptions); if(IsEqualGUID(&IID_IPersistMoniker, riid) && dwOptionSetMask==INTERFACESAFE_FOR_UNTRUSTED_DATA && dwEnabledOptions==INTERFACESAFE_FOR_UNTRUSTED_DATA) return S_OK; return E_NOTIMPL; }
static HRESULT WINAPI httprequest_Safety_GetInterfaceSafetyOptions(IObjectSafety *iface, REFIID riid, DWORD *supported, DWORD *enabled) { httprequest *This = impl_from_IObjectSafety(iface); TRACE("(%p)->(%s %p %p)\n", This, debugstr_guid(riid), supported, enabled); if(!supported || !enabled) return E_POINTER; *supported = SAFETY_SUPPORTED_OPTIONS; *enabled = This->safeopt; return S_OK; }
static HRESULT WINAPI JScriptSafety_GetInterfaceSafetyOptions(IObjectSafety *iface, REFIID riid, DWORD *pdwSupportedOptions, DWORD *pdwEnabledOptions) { JScript *This = impl_from_IObjectSafety(iface); TRACE("(%p)->(%s %p %p)\n", This, debugstr_guid(riid), pdwSupportedOptions, pdwEnabledOptions); if(!pdwSupportedOptions || !pdwEnabledOptions) return E_POINTER; *pdwSupportedOptions = SUPPORTED_OPTIONS; *pdwEnabledOptions = This->safeopt; return S_OK; }
static ULONG WINAPI JScriptSafety_Release(IObjectSafety *iface) { JScript *This = impl_from_IObjectSafety(iface); return IActiveScript_Release(&This->IActiveScript_iface); }
static HRESULT WINAPI JScriptSafety_QueryInterface(IObjectSafety *iface, REFIID riid, void **ppv) { JScript *This = impl_from_IObjectSafety(iface); return IActiveScript_QueryInterface(&This->IActiveScript_iface, riid, ppv); }
static ULONG WINAPI httprequest_Safety_Release(IObjectSafety *iface) { httprequest *This = impl_from_IObjectSafety(iface); return IXMLHTTPRequest_Release((IXMLHTTPRequest *)This); }
/* IObjectSafety */ static HRESULT WINAPI httprequest_Safety_QueryInterface(IObjectSafety *iface, REFIID riid, void **ppv) { httprequest *This = impl_from_IObjectSafety(iface); return IXMLHTTPRequest_QueryInterface( (IXMLHTTPRequest *)This, riid, ppv ); }
static ULONG WINAPI ObjectSafety_Release(IObjectSafety *iface) { HTMLDocument *This = impl_from_IObjectSafety(iface); return htmldoc_release(This); }
static ULONG WINAPI ObjectSafety_AddRef(IObjectSafety *iface) { HTMLDocument *This = impl_from_IObjectSafety(iface); return htmldoc_addref(This); }
static HRESULT WINAPI ObjectSafety_QueryInterface(IObjectSafety *iface, REFIID riid, void **ppv) { HTMLDocument *This = impl_from_IObjectSafety(iface); return htmldoc_query_interface(This, riid, ppv); }