Lines Matching refs:obj
37 php_com_dotnet_object *obj; in PHP_FUNCTION() local
59 obj = CDNO_FETCH(object); in PHP_FUNCTION()
79 obj->code_page = (int)cp; in PHP_FUNCTION()
129 moniker = php_com_string_to_olestring(module_name, module_name_len, obj->code_page); in PHP_FUNCTION()
136 info.pwszName = php_com_string_to_olestring(server_name, server_name_len, obj->code_page); in PHP_FUNCTION()
139 authid.User = php_com_string_to_olestring(user_name, -1, obj->code_page); in PHP_FUNCTION()
192 NULL, &IID_IDispatch, (LPVOID*)&V_DISPATCH(&obj->v)); in PHP_FUNCTION()
195 V_VT(&obj->v) = VT_DISPATCH; in PHP_FUNCTION()
215 V_DISPATCH(&obj->v) = (IDispatch*)qi.pItf; in PHP_FUNCTION()
216 V_VT(&obj->v) = VT_DISPATCH; in PHP_FUNCTION()
219 …res = CoCreateInstance(&clsid, NULL, CLSCTX_SERVER, &IID_IDispatch, (LPVOID*)&V_DISPATCH(&obj->v)); in PHP_FUNCTION()
221 V_VT(&obj->v) = VT_DISPATCH; in PHP_FUNCTION()
247 …if (FAILED(IDispatch_GetTypeInfo(V_DISPATCH(&obj->v), 0, LANG_NEUTRAL, &obj->typeinfo)) && typelib… in PHP_FUNCTION()
251 TL = php_com_load_typelib_via_cache(typelib_name, obj->code_page, &cached); in PHP_FUNCTION()
255 php_com_import_typelib(TL, mode, obj->code_page); in PHP_FUNCTION()
260 ITypeLib_GetTypeInfo(TL, 0, &obj->typeinfo); in PHP_FUNCTION()
263 } else if (obj->typeinfo && COMG(autoreg_on)) { in PHP_FUNCTION()
266 if (SUCCEEDED(ITypeInfo_GetContainingTypeLib(obj->typeinfo, &TL, &idx))) { in PHP_FUNCTION()
271 typelib_name = php_com_olestring_to_string(name, &typelib_name_len, obj->code_page); in PHP_FUNCTION()
274 php_com_import_typelib(TL, mode, obj->code_page); in PHP_FUNCTION()
282 php_com_import_typelib(TL, mode, obj->code_page); in PHP_FUNCTION()
301 IDispatch *obj = NULL; in PHP_FUNCTION() local
324 res = IUnknown_QueryInterface(unk, &IID_IDispatch, &obj); in PHP_FUNCTION()
328 } else if (obj) { in PHP_FUNCTION()
330 php_com_wrap_dispatch(return_value, obj, (int)code_page); in PHP_FUNCTION()
335 if (obj) { in PHP_FUNCTION()
336 IDispatch_Release(obj); in PHP_FUNCTION()
339 IUnknown_Release(obj); in PHP_FUNCTION()
347 HRESULT php_com_invoke_helper(php_com_dotnet_object *obj, DISPID id_member, in php_com_invoke_helper() argument
354 hr = IDispatch_Invoke(V_DISPATCH(&obj->v), id_member, in php_com_invoke_helper()
364 source = php_com_olestring_to_string(e.bstrSource, &source_len, obj->code_page); in php_com_invoke_helper()
368 desc = php_com_olestring_to_string(e.bstrDescription, &desc_len, obj->code_page); in php_com_invoke_helper()
425 HRESULT php_com_get_id_of_name(php_com_dotnet_object *obj, char *name, in php_com_get_id_of_name() argument
436 …if (obj->id_of_name_cache && NULL != (tmp = zend_hash_str_find(obj->id_of_name_cache, name, namele… in php_com_get_id_of_name()
441 olename = php_com_string_to_olestring(name, namelen, obj->code_page); in php_com_get_id_of_name()
443 if (obj->typeinfo) { in php_com_get_id_of_name()
444 hr = ITypeInfo_GetIDsOfNames(obj->typeinfo, &olename, 1, dispid); in php_com_get_id_of_name()
446 …hr = IDispatch_GetIDsOfNames(V_DISPATCH(&obj->v), &IID_NULL, &olename, 1, LOCALE_SYSTEM_DEFAULT, d… in php_com_get_id_of_name()
449 ITypeInfo_Release(obj->typeinfo); in php_com_get_id_of_name()
450 obj->typeinfo = NULL; in php_com_get_id_of_name()
454 …hr = IDispatch_GetIDsOfNames(V_DISPATCH(&obj->v), &IID_NULL, &olename, 1, LOCALE_SYSTEM_DEFAULT, d… in php_com_get_id_of_name()
462 if (!obj->id_of_name_cache) { in php_com_get_id_of_name()
463 ALLOC_HASHTABLE(obj->id_of_name_cache); in php_com_get_id_of_name()
464 zend_hash_init(obj->id_of_name_cache, 2, NULL, NULL, 0); in php_com_get_id_of_name()
467 zend_hash_str_update(obj->id_of_name_cache, name, namelen, &tmp); in php_com_get_id_of_name()
474 int php_com_do_invoke_byref(php_com_dotnet_object *obj, zend_internal_function *f, in php_com_do_invoke_byref() argument
488 hr = php_com_get_id_of_name(obj, f->function_name->val, f->function_name->len, &dispid); in php_com_do_invoke_byref()
519 php_com_variant_from_zval(&byref_vals[j], &args[nargs - i - 1], obj->code_page); in php_com_do_invoke_byref()
534 php_com_variant_from_zval(&vargs[i], &args[nargs - i - 1], obj->code_page); in php_com_do_invoke_byref()
541 php_com_variant_from_zval(&vargs[i], &args[nargs - i - 1], obj->code_page); in php_com_do_invoke_byref()
557 hr = php_com_invoke_helper(obj, dispid, flags, &disp_params, v, 0, 0); in php_com_do_invoke_byref()
576 php_com_zval_from_variant(arg, &byref_vals[j], obj->code_page); in php_com_do_invoke_byref()
581 php_com_zval_from_variant(arg, &vargs[i], obj->code_page); in php_com_do_invoke_byref()
601 int php_com_do_invoke_by_id(php_com_dotnet_object *obj, DISPID dispid, in php_com_do_invoke_by_id() argument
616 php_com_variant_from_zval(&vargs[i], &args[nargs - i - 1], obj->code_page); in php_com_do_invoke_by_id()
631 hr = php_com_invoke_helper(obj, dispid, flags, &disp_params, v, silent, allow_noarg); in php_com_do_invoke_by_id()
648 int php_com_do_invoke(php_com_dotnet_object *obj, char *name, size_t namelen, in php_com_do_invoke() argument
656 hr = php_com_get_id_of_name(obj, name, namelen, &dispid); in php_com_do_invoke()
667 return php_com_do_invoke_by_id(obj, dispid, flags, v, nargs, args, 0, allow_noarg); in php_com_do_invoke()
704 php_com_dotnet_object *obj; in PHP_FUNCTION() local
715 obj = CDNO_FETCH(object); in PHP_FUNCTION()
730 typeinfo = php_com_locate_typeinfo(typelibname, obj, dispname, 1); in PHP_FUNCTION()
737 if (php_com_process_typeinfo(typeinfo, id_to_name, 0, &obj->sink_id, obj->code_page)) { in PHP_FUNCTION()
740 obj->sink_dispatch = php_com_wrapper_export_as_sink(sinkobject, &obj->sink_id, id_to_name); in PHP_FUNCTION()
743 php_com_object_enable_event_sink(obj, TRUE); in PHP_FUNCTION()
767 php_com_dotnet_object *obj = NULL; in PHP_FUNCTION() local
777 CDNO_FETCH_VERIFY(obj, arg1); in PHP_FUNCTION()
783 typeinfo = php_com_locate_typeinfo(typelibname, obj, ifacename, wantsink ? 1 : 0); in PHP_FUNCTION()
785 php_com_process_typeinfo(typeinfo, NULL, 1, NULL, obj ? obj->code_page : COMG(code_page)); in PHP_FUNCTION()