Lines Matching refs:obj
37 php_com_dotnet_object *obj; in PHP_FUNCTION() local
58 obj = CDNO_FETCH(object); in PHP_FUNCTION()
77 obj->code_page = (int)cp; in PHP_FUNCTION()
127 moniker = php_com_string_to_olestring(module_name, module_name_len, obj->code_page); in PHP_FUNCTION()
134 info.pwszName = php_com_string_to_olestring(server_name, server_name_len, obj->code_page); in PHP_FUNCTION()
137 authid.User = php_com_string_to_olestring(user_name, -1, obj->code_page); in PHP_FUNCTION()
190 NULL, &IID_IDispatch, (LPVOID*)&V_DISPATCH(&obj->v)); in PHP_FUNCTION()
193 V_VT(&obj->v) = VT_DISPATCH; in PHP_FUNCTION()
213 V_DISPATCH(&obj->v) = (IDispatch*)qi.pItf; in PHP_FUNCTION()
214 V_VT(&obj->v) = VT_DISPATCH; in PHP_FUNCTION()
217 …res = CoCreateInstance(&clsid, NULL, CLSCTX_SERVER, &IID_IDispatch, (LPVOID*)&V_DISPATCH(&obj->v)); in PHP_FUNCTION()
219 V_VT(&obj->v) = VT_DISPATCH; in PHP_FUNCTION()
245 …if (FAILED(IDispatch_GetTypeInfo(V_DISPATCH(&obj->v), 0, LANG_NEUTRAL, &obj->typeinfo)) && typelib… in PHP_FUNCTION()
249 TL = php_com_load_typelib_via_cache(typelib_name, obj->code_page, &cached); in PHP_FUNCTION()
253 php_com_import_typelib(TL, mode, obj->code_page); in PHP_FUNCTION()
258 ITypeLib_GetTypeInfo(TL, 0, &obj->typeinfo); in PHP_FUNCTION()
261 } else if (obj->typeinfo && COMG(autoreg_on)) { in PHP_FUNCTION()
264 if (SUCCEEDED(ITypeInfo_GetContainingTypeLib(obj->typeinfo, &TL, &idx))) { in PHP_FUNCTION()
269 typelib_name = php_com_olestring_to_string(name, &typelib_name_len, obj->code_page); in PHP_FUNCTION()
272 php_com_import_typelib(TL, mode, obj->code_page); in PHP_FUNCTION()
280 php_com_import_typelib(TL, mode, obj->code_page); in PHP_FUNCTION()
299 IDispatch *obj = NULL; in PHP_FUNCTION() local
322 res = IUnknown_QueryInterface(unk, &IID_IDispatch, &obj); in PHP_FUNCTION()
326 } else if (obj) { in PHP_FUNCTION()
328 php_com_wrap_dispatch(return_value, obj, (int)code_page); in PHP_FUNCTION()
333 if (obj) { in PHP_FUNCTION()
334 IDispatch_Release(obj); in PHP_FUNCTION()
337 IUnknown_Release(obj); in PHP_FUNCTION()
345 HRESULT php_com_invoke_helper(php_com_dotnet_object *obj, DISPID id_member, in php_com_invoke_helper() argument
352 hr = IDispatch_Invoke(V_DISPATCH(&obj->v), id_member, in php_com_invoke_helper()
362 source = php_com_olestring_to_string(e.bstrSource, &source_len, obj->code_page); in php_com_invoke_helper()
366 desc = php_com_olestring_to_string(e.bstrDescription, &desc_len, obj->code_page); in php_com_invoke_helper()
423 HRESULT php_com_get_id_of_name(php_com_dotnet_object *obj, char *name, in php_com_get_id_of_name() argument
434 …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()
439 olename = php_com_string_to_olestring(name, namelen, obj->code_page); in php_com_get_id_of_name()
441 if (obj->typeinfo) { in php_com_get_id_of_name()
442 hr = ITypeInfo_GetIDsOfNames(obj->typeinfo, &olename, 1, dispid); in php_com_get_id_of_name()
444 …hr = IDispatch_GetIDsOfNames(V_DISPATCH(&obj->v), &IID_NULL, &olename, 1, LOCALE_SYSTEM_DEFAULT, d… in php_com_get_id_of_name()
447 ITypeInfo_Release(obj->typeinfo); in php_com_get_id_of_name()
448 obj->typeinfo = NULL; in php_com_get_id_of_name()
452 …hr = IDispatch_GetIDsOfNames(V_DISPATCH(&obj->v), &IID_NULL, &olename, 1, LOCALE_SYSTEM_DEFAULT, d… in php_com_get_id_of_name()
460 if (!obj->id_of_name_cache) { in php_com_get_id_of_name()
461 ALLOC_HASHTABLE(obj->id_of_name_cache); in php_com_get_id_of_name()
462 zend_hash_init(obj->id_of_name_cache, 2, NULL, NULL, 0); in php_com_get_id_of_name()
465 zend_hash_str_update(obj->id_of_name_cache, name, namelen, &tmp); in php_com_get_id_of_name()
472 int php_com_do_invoke_byref(php_com_dotnet_object *obj, zend_internal_function *f, in php_com_do_invoke_byref() argument
486 hr = php_com_get_id_of_name(obj, f->function_name->val, f->function_name->len, &dispid); in php_com_do_invoke_byref()
517 php_com_variant_from_zval(&byref_vals[j], &args[nargs - i - 1], obj->code_page); in php_com_do_invoke_byref()
532 php_com_variant_from_zval(&vargs[i], &args[nargs - i - 1], obj->code_page); in php_com_do_invoke_byref()
539 php_com_variant_from_zval(&vargs[i], &args[nargs - i - 1], obj->code_page); in php_com_do_invoke_byref()
555 hr = php_com_invoke_helper(obj, dispid, flags, &disp_params, v, 0, 0); in php_com_do_invoke_byref()
574 php_com_zval_from_variant(arg, &byref_vals[j], obj->code_page); in php_com_do_invoke_byref()
579 php_com_zval_from_variant(arg, &vargs[i], obj->code_page); in php_com_do_invoke_byref()
599 int php_com_do_invoke_by_id(php_com_dotnet_object *obj, DISPID dispid, in php_com_do_invoke_by_id() argument
614 php_com_variant_from_zval(&vargs[i], &args[nargs - i - 1], obj->code_page); in php_com_do_invoke_by_id()
629 hr = php_com_invoke_helper(obj, dispid, flags, &disp_params, v, silent, allow_noarg); in php_com_do_invoke_by_id()
646 int php_com_do_invoke(php_com_dotnet_object *obj, char *name, size_t namelen, in php_com_do_invoke() argument
654 hr = php_com_get_id_of_name(obj, name, namelen, &dispid); in php_com_do_invoke()
665 return php_com_do_invoke_by_id(obj, dispid, flags, v, nargs, args, 0, allow_noarg); in php_com_do_invoke()
702 php_com_dotnet_object *obj; in PHP_FUNCTION() local
713 obj = CDNO_FETCH(object); in PHP_FUNCTION()
728 typeinfo = php_com_locate_typeinfo(typelibname, obj, dispname, 1); in PHP_FUNCTION()
735 if (php_com_process_typeinfo(typeinfo, id_to_name, 0, &obj->sink_id, obj->code_page)) { in PHP_FUNCTION()
738 obj->sink_dispatch = php_com_wrapper_export_as_sink(sinkobject, &obj->sink_id, id_to_name); in PHP_FUNCTION()
741 php_com_object_enable_event_sink(obj, TRUE); in PHP_FUNCTION()
765 php_com_dotnet_object *obj = NULL; in PHP_FUNCTION() local
775 CDNO_FETCH_VERIFY(obj, arg1); in PHP_FUNCTION()
781 typeinfo = php_com_locate_typeinfo(typelibname, obj, ifacename, wantsink ? 1 : 0); in PHP_FUNCTION()
783 php_com_process_typeinfo(typeinfo, NULL, 1, NULL, obj ? obj->code_page : COMG(code_page)); in PHP_FUNCTION()