Lines Matching refs:hr
190 qi.hr = S_OK; in PHP_METHOD()
195 res = qi.hr; in PHP_METHOD()
335 HRESULT hr; in php_com_invoke_helper() local
339 hr = IDispatch_Invoke(V_DISPATCH(&obj->v), id_member, in php_com_invoke_helper()
342 if (!silent && FAILED(hr)) { in php_com_invoke_helper()
345 switch (hr) { in php_com_invoke_helper()
378 desc = php_win32_error_to_msg(hr); in php_com_invoke_helper()
394 desc = php_win32_error_to_msg(hr); in php_com_invoke_helper()
395 spprintf(&msg, 0, "Error [0x%08lx] %s", hr, desc); in php_com_invoke_helper()
401 php_com_throw_exception(hr, msg); in php_com_invoke_helper()
406 return hr; in php_com_invoke_helper()
414 HRESULT hr; in php_com_get_id_of_name() local
425 hr = ITypeInfo_GetIDsOfNames(obj->typeinfo, &olename, 1, dispid); in php_com_get_id_of_name()
426 if (FAILED(hr)) { in php_com_get_id_of_name()
427 HRESULT hr1 = hr; in php_com_get_id_of_name()
428 …hr = IDispatch_GetIDsOfNames(V_DISPATCH(&obj->v), &IID_NULL, &olename, 1, MAKELANGID(LANG_NEUTRAL,… in php_com_get_id_of_name()
429 if (SUCCEEDED(hr) && hr1 != E_NOTIMPL) { in php_com_get_id_of_name()
436 …hr = IDispatch_GetIDsOfNames(V_DISPATCH(&obj->v), &IID_NULL, &olename, 1, MAKELANGID(LANG_NEUTRAL,… in php_com_get_id_of_name()
440 if (SUCCEEDED(hr)) { in php_com_get_id_of_name()
452 return hr; in php_com_get_id_of_name()
461 HRESULT hr; in php_com_do_invoke_byref() local
470 hr = php_com_get_id_of_name(obj, f->function_name, &dispid); in php_com_do_invoke_byref()
472 if (FAILED(hr)) { in php_com_do_invoke_byref()
474 char *winerr = php_win32_error_to_msg(hr); in php_com_do_invoke_byref()
477 php_com_throw_exception(hr, msg); in php_com_do_invoke_byref()
538 hr = php_com_invoke_helper(obj, dispid, flags, &disp_params, v, 0, 0); in php_com_do_invoke_byref()
579 return SUCCEEDED(hr) ? SUCCESS : FAILURE; in php_com_do_invoke_byref()
589 HRESULT hr; in php_com_do_invoke_by_id() local
614 hr = php_com_invoke_helper(obj, dispid, flags, &disp_params, v, silent, allow_noarg); in php_com_do_invoke_by_id()
625 if (hr == DISP_E_BADPARAMCOUNT) in php_com_do_invoke_by_id()
626 return hr; in php_com_do_invoke_by_id()
628 return SUCCEEDED(hr) ? SUCCESS : FAILURE; in php_com_do_invoke_by_id()
635 HRESULT hr; in php_com_do_invoke() local
638 hr = php_com_get_id_of_name(obj, name, &dispid); in php_com_do_invoke()
640 if (FAILED(hr)) { in php_com_do_invoke()
641 char *winerr = php_win32_error_to_msg(hr); in php_com_do_invoke()
644 php_com_throw_exception(hr, msg); in php_com_do_invoke()