30 {0x10200490,0xfa38,0x11d0,{0xac,0x0e,0x00,0xa0,0xc9,0xf,0xff,0xc0}};
44 hres = IActiveScriptSite_QueryInterface(
ctx->site, &IID_IServiceProvider, (
void**)&
sp);
48 hres = IServiceProvider_QueryService(
sp, &SID_SInternetHostSecurityManager, &IID_IInternetHostSecurityManager,
50 IServiceProvider_Release(
sp);
54 return ctx->secmgr = secmgr;
62 IClassFactoryEx *cfex;
79 if(
ctx->safeopt & INTERFACE_USES_SECURITY_MANAGER) {
85 hres = IInternetHostSecurityManager_ProcessUrlAction(secmgr, URLACTION_ACTIVEX_RUN,
95 hres = IClassFactory_QueryInterface(
cf, &IID_IClassFactoryEx, (
void**)&cfex);
97 FIXME(
"Use IClassFactoryEx\n");
98 IClassFactoryEx_Release(cfex);
110 &bpolicy, &policy_size, (
BYTE*)&
cs,
sizeof(
cs), 0);
112 policy = policy_size >=
sizeof(
DWORD) ? *(
DWORD*)bpolicy : URLPOLICY_DISALLOW;
117 IUnknown_Release(
obj);
128 hres = IObjectWithSite_SetSite(obj_site, ax_site);
129 IUnknown_Release(ax_site);
131 IObjectWithSite_Release(obj_site);
133 IUnknown_Release(
obj);
152 if(
flags != DISPATCH_CONSTRUCT) {
157 if(
ctx->safeopt != (INTERFACESAFE_FOR_UNTRUSTED_DATA|INTERFACE_USES_DISPEX|INTERFACE_USES_SECURITY_MANAGER)
158 &&
ctx->safeopt != INTERFACE_USES_DISPEX) {
159 FIXME(
"Unsupported safeopt %x\n",
ctx->safeopt);
178 IUnknown_Release(
obj);
180 FIXME(
"Object does not support IDispatch\n");
193 static const WCHAR ActiveXObjectW[] = {
'A',
'c',
't',
'i',
'v',
'e',
'X',
'O',
'b',
'j',
'e',
'c',
't',0};
#define WINE_DEFAULT_DEBUG_CHANNEL(t)
const GUID IID_IClassFactory
static IInternetHostSecurityManager * get_sec_mgr(script_ctx_t *ctx)
HRESULT create_activex_constr(script_ctx_t *ctx, jsdisp_t **ret)
static IUnknown * create_activex_object(script_ctx_t *ctx, const WCHAR *progid)
const GUID GUID_CUSTOM_CONFIRMOBJECTSAFETY
static HRESULT ActiveXObject_value(script_ctx_t *ctx, vdisp_t *jsthis, WORD flags, unsigned argc, jsval_t *argv, jsval_t *r)
HRESULT throw_generic_error(script_ctx_t *ctx, HRESULT error, const WCHAR *str)
HRESULT create_builtin_function(script_ctx_t *ctx, builtin_invoke_t value_proc, const WCHAR *name, const builtin_info_t *builtin_info, DWORD flags, jsdisp_t *prototype, jsdisp_t **ret)
IUnknown * create_ax_site(script_ctx_t *ctx)
HRESULT WINAPI DECLSPEC_HOTPATCH CLSIDFromProgID(LPCOLESTR progid, LPCLSID clsid)
HRESULT WINAPI DECLSPEC_HOTPATCH CoGetClassObject(REFCLSID rclsid, DWORD dwClsContext, COSERVERINFO *pServerInfo, REFIID iid, LPVOID *ppv)
WDF_INTERRUPT_POLICY policy
GLdouble GLdouble GLdouble r
VOID WINAPI CoTaskMemFree(LPVOID ptr)
static const WCHAR ActiveXObjectW[]
HRESULT create_object(script_ctx_t *, jsdisp_t *, jsdisp_t **) DECLSPEC_HIDDEN
static void jsdisp_release(jsdisp_t *jsdisp)
#define JS_E_CANNOT_CREATE_OBJ
HRESULT to_flat_string(script_ctx_t *, jsval_t, jsstr_t **, const WCHAR **) DECLSPEC_HIDDEN
static void jsstr_release(jsstr_t *str)
static jsval_t jsval_disp(IDispatch *obj)
const IID IID_IObjectWithSite