Lines Matching refs:hr
201 qi.hr = S_OK; in PHP_FUNCTION()
206 res = qi.hr; in PHP_FUNCTION()
343 HRESULT hr; in php_com_invoke_helper() local
347 hr = IDispatch_Invoke(V_DISPATCH(&obj->v), id_member, in php_com_invoke_helper()
350 if (silent == 0 && FAILED(hr)) { in php_com_invoke_helper()
354 switch (hr) { in php_com_invoke_helper()
386 desc = php_win32_error_to_msg(hr); in php_com_invoke_helper()
402 desc = php_win32_error_to_msg(hr); in php_com_invoke_helper()
403 spprintf(&msg, 0, "Error [0x%08x] %s", hr, desc); in php_com_invoke_helper()
409 php_com_throw_exception(hr, msg TSRMLS_CC); in php_com_invoke_helper()
414 return hr; in php_com_invoke_helper()
422 HRESULT hr; in php_com_get_id_of_name() local
437 hr = ITypeInfo_GetIDsOfNames(obj->typeinfo, &olename, 1, dispid); in php_com_get_id_of_name()
438 if (FAILED(hr)) { 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()
440 if (SUCCEEDED(hr)) { 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()
451 if (SUCCEEDED(hr)) { in php_com_get_id_of_name()
460 return hr; in php_com_get_id_of_name()
469 HRESULT hr; in php_com_do_invoke_byref() local
479 hr = php_com_get_id_of_name(obj, name, namelen, &dispid TSRMLS_CC); in php_com_do_invoke_byref()
481 if (FAILED(hr)) { in php_com_do_invoke_byref()
484 winerr = php_win32_error_to_msg(hr); in php_com_do_invoke_byref()
487 php_com_throw_exception(hr, msg 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()
580 return SUCCEEDED(hr) ? SUCCESS : FAILURE; in php_com_do_invoke_byref()
590 HRESULT hr; in php_com_do_invoke_by_id() local
615 hr = php_com_invoke_helper(obj, dispid, flags, &disp_params, v, silent, allow_noarg TSRMLS_CC); in php_com_do_invoke_by_id()
626 if (hr == DISP_E_BADPARAMCOUNT) in php_com_do_invoke_by_id()
627 return hr; in php_com_do_invoke_by_id()
629 return SUCCEEDED(hr) ? SUCCESS : FAILURE; in php_com_do_invoke_by_id()
636 HRESULT hr; in php_com_do_invoke() local
640 hr = php_com_get_id_of_name(obj, name, namelen, &dispid TSRMLS_CC); in php_com_do_invoke()
642 if (FAILED(hr)) { in php_com_do_invoke()
643 winerr = php_win32_error_to_msg(hr); in php_com_do_invoke()
646 php_com_throw_exception(hr, msg TSRMLS_CC); in php_com_do_invoke()