Lines Matching refs:hr

209 		qi.hr = S_OK;  in PHP_FUNCTION()
214 res = qi.hr; in PHP_FUNCTION()
350 HRESULT hr; in php_com_invoke_helper() local
354 hr = IDispatch_Invoke(V_DISPATCH(&obj->v), id_member, in php_com_invoke_helper()
357 if (silent == 0 && FAILED(hr)) { in php_com_invoke_helper()
361 switch (hr) { in php_com_invoke_helper()
393 desc = php_win32_error_to_msg(hr); in php_com_invoke_helper()
409 desc = php_win32_error_to_msg(hr); in php_com_invoke_helper()
410 spprintf(&msg, 0, "Error [0x%08x] %s", hr, desc); in php_com_invoke_helper()
416 php_com_throw_exception(hr, msg); in php_com_invoke_helper()
421 return hr; in php_com_invoke_helper()
429 HRESULT hr; in php_com_get_id_of_name() local
444 hr = ITypeInfo_GetIDsOfNames(obj->typeinfo, &olename, 1, dispid); in php_com_get_id_of_name()
445 if (FAILED(hr)) { in php_com_get_id_of_name()
446hr = IDispatch_GetIDsOfNames(V_DISPATCH(&obj->v), &IID_NULL, &olename, 1, LOCALE_SYSTEM_DEFAULT, d… in php_com_get_id_of_name()
447 if (SUCCEEDED(hr)) { in php_com_get_id_of_name()
454hr = IDispatch_GetIDsOfNames(V_DISPATCH(&obj->v), &IID_NULL, &olename, 1, LOCALE_SYSTEM_DEFAULT, d… in php_com_get_id_of_name()
458 if (SUCCEEDED(hr)) { in php_com_get_id_of_name()
470 return hr; in php_com_get_id_of_name()
479 HRESULT hr; in php_com_do_invoke_byref() local
488 hr = php_com_get_id_of_name(obj, f->function_name->val, f->function_name->len, &dispid); in php_com_do_invoke_byref()
490 if (FAILED(hr)) { in php_com_do_invoke_byref()
493 winerr = php_win32_error_to_msg(hr); in php_com_do_invoke_byref()
496 php_com_throw_exception(hr, msg); 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()
596 return SUCCEEDED(hr) ? SUCCESS : FAILURE; in php_com_do_invoke_byref()
606 HRESULT hr; in php_com_do_invoke_by_id() local
631 hr = php_com_invoke_helper(obj, dispid, flags, &disp_params, v, silent, allow_noarg); in php_com_do_invoke_by_id()
642 if (hr == DISP_E_BADPARAMCOUNT) in php_com_do_invoke_by_id()
643 return hr; in php_com_do_invoke_by_id()
645 return SUCCEEDED(hr) ? SUCCESS : FAILURE; in php_com_do_invoke_by_id()
652 HRESULT hr; in php_com_do_invoke() local
656 hr = php_com_get_id_of_name(obj, name, namelen, &dispid); in php_com_do_invoke()
658 if (FAILED(hr)) { in php_com_do_invoke()
659 winerr = php_win32_error_to_msg(hr); in php_com_do_invoke()
662 php_com_throw_exception(hr, msg); in php_com_do_invoke()