Lines Matching refs:obj
37 php_com_dotnet_object *obj; in PHP_FUNCTION() local
57 obj = CDNO_FETCH(object); in PHP_FUNCTION()
62 &obj->code_page, &typelib_name, &typelib_name_len) && in PHP_FUNCTION()
65 &module_name, &module_name_len, &server_params, &obj->code_page, in PHP_FUNCTION()
121 moniker = php_com_string_to_olestring(module_name, module_name_len, obj->code_page TSRMLS_CC); in PHP_FUNCTION()
128 …info.pwszName = php_com_string_to_olestring(server_name, server_name_len, obj->code_page TSRMLS_CC… in PHP_FUNCTION()
131 authid.User = php_com_string_to_olestring(user_name, -1, obj->code_page TSRMLS_CC); in PHP_FUNCTION()
184 NULL, &IID_IDispatch, (LPVOID*)&V_DISPATCH(&obj->v)); in PHP_FUNCTION()
187 V_VT(&obj->v) = VT_DISPATCH; in PHP_FUNCTION()
207 V_DISPATCH(&obj->v) = (IDispatch*)qi.pItf; in PHP_FUNCTION()
208 V_VT(&obj->v) = VT_DISPATCH; in PHP_FUNCTION()
211 …res = CoCreateInstance(&clsid, NULL, CLSCTX_SERVER, &IID_IDispatch, (LPVOID*)&V_DISPATCH(&obj->v)); in PHP_FUNCTION()
213 V_VT(&obj->v) = VT_DISPATCH; in PHP_FUNCTION()
240 …if (FAILED(IDispatch_GetTypeInfo(V_DISPATCH(&obj->v), 0, LANG_NEUTRAL, &obj->typeinfo)) && typelib… in PHP_FUNCTION()
244 TL = php_com_load_typelib_via_cache(typelib_name, obj->code_page, &cached TSRMLS_CC); in PHP_FUNCTION()
248 php_com_import_typelib(TL, mode, obj->code_page TSRMLS_CC); in PHP_FUNCTION()
253 ITypeLib_GetTypeInfo(TL, 0, &obj->typeinfo); in PHP_FUNCTION()
256 } else if (obj->typeinfo && COMG(autoreg_on)) { in PHP_FUNCTION()
259 if (SUCCEEDED(ITypeInfo_GetContainingTypeLib(obj->typeinfo, &TL, &idx))) { in PHP_FUNCTION()
264 typelib_name = php_com_olestring_to_string(name, &typelib_name_len, obj->code_page TSRMLS_CC); in PHP_FUNCTION()
267 php_com_import_typelib(TL, mode, obj->code_page TSRMLS_CC); in PHP_FUNCTION()
275 php_com_import_typelib(TL, mode, obj->code_page TSRMLS_CC); in PHP_FUNCTION()
294 IDispatch *obj = NULL; in PHP_FUNCTION() local
317 res = IUnknown_QueryInterface(unk, &IID_IDispatch, &obj); in PHP_FUNCTION()
321 } else if (obj) { in PHP_FUNCTION()
323 php_com_wrap_dispatch(return_value, obj, code_page TSRMLS_CC); in PHP_FUNCTION()
328 if (obj) { in PHP_FUNCTION()
329 IDispatch_Release(obj); in PHP_FUNCTION()
332 IUnknown_Release(obj); in PHP_FUNCTION()
340 HRESULT php_com_invoke_helper(php_com_dotnet_object *obj, DISPID id_member, in php_com_invoke_helper() argument
347 hr = IDispatch_Invoke(V_DISPATCH(&obj->v), id_member, in php_com_invoke_helper()
357 source = php_com_olestring_to_string(e.bstrSource, &source_len, obj->code_page TSRMLS_CC); in php_com_invoke_helper()
361 desc = php_com_olestring_to_string(e.bstrDescription, &desc_len, obj->code_page TSRMLS_CC); in php_com_invoke_helper()
418 HRESULT php_com_get_id_of_name(php_com_dotnet_object *obj, char *name, in php_com_get_id_of_name() argument
429 …if (obj->id_of_name_cache && SUCCESS == zend_hash_find(obj->id_of_name_cache, name, namelen, (void… in php_com_get_id_of_name()
434 olename = php_com_string_to_olestring(name, namelen, obj->code_page TSRMLS_CC); in php_com_get_id_of_name()
436 if (obj->typeinfo) { in php_com_get_id_of_name()
437 hr = ITypeInfo_GetIDsOfNames(obj->typeinfo, &olename, 1, dispid); in php_com_get_id_of_name()
439 …hr = IDispatch_GetIDsOfNames(V_DISPATCH(&obj->v), &IID_NULL, &olename, 1, LOCALE_SYSTEM_DEFAULT, d… in php_com_get_id_of_name()
442 ITypeInfo_Release(obj->typeinfo); in php_com_get_id_of_name()
443 obj->typeinfo = NULL; in php_com_get_id_of_name()
447 …hr = IDispatch_GetIDsOfNames(V_DISPATCH(&obj->v), &IID_NULL, &olename, 1, LOCALE_SYSTEM_DEFAULT, d… in php_com_get_id_of_name()
453 if (!obj->id_of_name_cache) { in php_com_get_id_of_name()
454 ALLOC_HASHTABLE(obj->id_of_name_cache); in php_com_get_id_of_name()
455 zend_hash_init(obj->id_of_name_cache, 2, NULL, NULL, 0); in php_com_get_id_of_name()
457 zend_hash_update(obj->id_of_name_cache, name, namelen, dispid, sizeof(*dispid), NULL); in php_com_get_id_of_name()
464 int php_com_do_invoke_byref(php_com_dotnet_object *obj, char *name, int namelen, in php_com_do_invoke_byref() argument
479 hr = php_com_get_id_of_name(obj, name, namelen, &dispid TSRMLS_CC); in php_com_do_invoke_byref()
510 php_com_variant_from_zval(&byref_vals[j], *args[nargs - i - 1], obj->code_page TSRMLS_CC); in php_com_do_invoke_byref()
525 php_com_variant_from_zval(&vargs[i], *args[nargs - i - 1], obj->code_page TSRMLS_CC); in php_com_do_invoke_byref()
532 php_com_variant_from_zval(&vargs[i], *args[nargs - i - 1], obj->code_page TSRMLS_CC); in php_com_do_invoke_byref()
548 hr = php_com_invoke_helper(obj, dispid, flags, &disp_params, v, 0, 0 TSRMLS_CC); in php_com_do_invoke_byref()
564 obj->code_page TSRMLS_CC); in php_com_do_invoke_byref()
570 obj->code_page TSRMLS_CC); in php_com_do_invoke_byref()
585 int php_com_do_invoke_by_id(php_com_dotnet_object *obj, DISPID dispid, in php_com_do_invoke_by_id() argument
600 php_com_variant_from_zval(&vargs[i], args[nargs - i - 1], obj->code_page TSRMLS_CC); in php_com_do_invoke_by_id()
615 hr = php_com_invoke_helper(obj, dispid, flags, &disp_params, v, silent, allow_noarg TSRMLS_CC); in php_com_do_invoke_by_id()
632 int php_com_do_invoke(php_com_dotnet_object *obj, char *name, int namelen, in php_com_do_invoke() argument
640 hr = php_com_get_id_of_name(obj, name, namelen, &dispid TSRMLS_CC); in php_com_do_invoke()
651 return php_com_do_invoke_by_id(obj, dispid, flags, v, nargs, args, 0, allow_noarg TSRMLS_CC); in php_com_do_invoke()
684 php_com_dotnet_object *obj; in PHP_FUNCTION() local
695 obj = CDNO_FETCH(object); in PHP_FUNCTION()
710 typeinfo = php_com_locate_typeinfo(typelibname, obj, dispname, 1 TSRMLS_CC); in PHP_FUNCTION()
717 if (php_com_process_typeinfo(typeinfo, id_to_name, 0, &obj->sink_id, obj->code_page TSRMLS_CC)) { in PHP_FUNCTION()
720 …obj->sink_dispatch = php_com_wrapper_export_as_sink(sinkobject, &obj->sink_id, id_to_name TSRMLS_C… in PHP_FUNCTION()
723 php_com_object_enable_event_sink(obj, TRUE TSRMLS_CC); in PHP_FUNCTION()
747 php_com_dotnet_object *obj = NULL; in PHP_FUNCTION() local
757 CDNO_FETCH_VERIFY(obj, arg1); in PHP_FUNCTION()
763 typeinfo = php_com_locate_typeinfo(typelibname, obj, ifacename, wantsink ? 1 : 0 TSRMLS_CC); in PHP_FUNCTION()
765 …php_com_process_typeinfo(typeinfo, NULL, 1, NULL, obj ? obj->code_page : COMG(code_page) TSRMLS_CC… in PHP_FUNCTION()