Lines Matching refs:hr

191 		qi.hr = S_OK;  in PHP_METHOD()
196 res = qi.hr; in PHP_METHOD()
336 HRESULT hr; in php_com_invoke_helper() local
340 hr = IDispatch_Invoke(V_DISPATCH(&obj->v), id_member, in php_com_invoke_helper()
343 if (silent == 0 && FAILED(hr)) { in php_com_invoke_helper()
347 switch (hr) { in php_com_invoke_helper()
379 desc = php_win32_error_to_msg(hr); in php_com_invoke_helper()
395 desc = php_win32_error_to_msg(hr); in php_com_invoke_helper()
396 spprintf(&msg, 0, "Error [0x%08x] %s", hr, desc); in php_com_invoke_helper()
402 php_com_throw_exception(hr, msg); in php_com_invoke_helper()
407 return hr; in php_com_invoke_helper()
415 HRESULT hr; in php_com_get_id_of_name() local
430 hr = ITypeInfo_GetIDsOfNames(obj->typeinfo, &olename, 1, dispid); in php_com_get_id_of_name()
431 if (FAILED(hr)) { in php_com_get_id_of_name()
432 HRESULT hr1 = hr; in php_com_get_id_of_name()
433hr = IDispatch_GetIDsOfNames(V_DISPATCH(&obj->v), &IID_NULL, &olename, 1, LOCALE_SYSTEM_DEFAULT, d… in php_com_get_id_of_name()
434 if (SUCCEEDED(hr) && hr1 != E_NOTIMPL) { in php_com_get_id_of_name()
441hr = IDispatch_GetIDsOfNames(V_DISPATCH(&obj->v), &IID_NULL, &olename, 1, LOCALE_SYSTEM_DEFAULT, d… in php_com_get_id_of_name()
445 if (SUCCEEDED(hr)) { in php_com_get_id_of_name()
457 return hr; in php_com_get_id_of_name()
466 HRESULT hr; in php_com_do_invoke_byref() local
475 hr = php_com_get_id_of_name(obj, f->function_name->val, f->function_name->len, &dispid); in php_com_do_invoke_byref()
477 if (FAILED(hr)) { in php_com_do_invoke_byref()
479 char *winerr = php_win32_error_to_msg(hr); in php_com_do_invoke_byref()
482 php_com_throw_exception(hr, msg); in php_com_do_invoke_byref()
543 hr = php_com_invoke_helper(obj, dispid, flags, &disp_params, v, 0, 0); in php_com_do_invoke_byref()
584 return SUCCEEDED(hr) ? SUCCESS : FAILURE; in php_com_do_invoke_byref()
594 HRESULT hr; in php_com_do_invoke_by_id() local
619 hr = php_com_invoke_helper(obj, dispid, flags, &disp_params, v, silent, allow_noarg); in php_com_do_invoke_by_id()
630 if (hr == DISP_E_BADPARAMCOUNT) in php_com_do_invoke_by_id()
631 return hr; in php_com_do_invoke_by_id()
633 return SUCCEEDED(hr) ? SUCCESS : FAILURE; in php_com_do_invoke_by_id()
640 HRESULT hr; in php_com_do_invoke() local
643 hr = php_com_get_id_of_name(obj, name, namelen, &dispid); in php_com_do_invoke()
645 if (FAILED(hr)) { in php_com_do_invoke()
646 char *winerr = php_win32_error_to_msg(hr); in php_com_do_invoke()
649 php_com_throw_exception(hr, msg); in php_com_do_invoke()