Lines Matching refs:hr
72 HRESULT hr = S_OK;
74 hr = __HRESULT_FROM_WIN32(ERROR_INVALID_HANDLE);
80 hr = StringCchCopy(pszDest, cchDest, pStack->text);
81 if (SUCCEEDED(hr))
88 hr = __HRESULT_FROM_WIN32(ERROR_INVALID_HANDLE);
90 return hr;
95 HRESULT hr = S_OK;
97 hr = __HRESULT_FROM_WIN32(ERROR_EMPTY);
109 return hr;
112 static void vboxPushResultAsString(HRESULT hr)
115 if (FAILED(hr))
117 if (FormatMessage(FORMAT_MESSAGE_FROM_SYSTEM, NULL, hr, 0, szErr, MAX_PATH, NULL))
175 HRESULT hr;
179 hr = __HRESULT_FROM_WIN32(ERROR_NOT_ENOUGH_MEMORY);
184 hr = HRESULT_FROM_WIN32(GetLastError());
189 hr = S_OK;
193 return hr;
229 HRESULT hr = vboxPopString(szFile, sizeof(szFile) / sizeof(TCHAR));
230 if (SUCCEEDED(hr))
242 hr = HRESULT_FROM_WIN32(ERROR_PROC_NOT_FOUND);
246 hr = HRESULT_FROM_WIN32(ERROR_FILE_NOT_FOUND);
248 if (SUCCEEDED(hr))
251 hr = vboxChar2WCharAlloc(szFile, &pwszFile);
252 if (SUCCEEDED(hr))
255 hr = HRESULT_FROM_WIN32(GetLastError());
264 vboxPushResultAsString(hr);
282 HRESULT hr = vboxPopString(szFile, sizeof(szFile) / sizeof(TCHAR));
283 if (SUCCEEDED(hr))
290 hr = __HRESULT_FROM_WIN32(ERROR_FILE_INVALID);
313 hr = S_OK;
321 if (SUCCEEDED(hr))
348 hr = __HRESULT_FROM_WIN32(ERROR_NOT_SUPPORTED);
353 hr = __HRESULT_FROM_WIN32(ERROR_FILE_INVALID);
356 hr = __HRESULT_FROM_WIN32(ERROR_FILE_INVALID);
362 hr = __HRESULT_FROM_WIN32(ERROR_NOT_FOUND);
365 if (FAILED(hr))
366 vboxPushResultAsString(hr);
384 HRESULT hr = vboxPopString(szFile, sizeof(szFile) / sizeof(TCHAR));
385 if (SUCCEEDED(hr))
413 hr = __HRESULT_FROM_WIN32(ERROR_NOT_FOUND);
416 hr = __HRESULT_FROM_WIN32(ERROR_NOT_FOUND);
421 hr = __HRESULT_FROM_WIN32(ERROR_OUTOFMEMORY);
424 hr = __HRESULT_FROM_WIN32(ERROR_NOT_FOUND);
427 if (FAILED(hr))
428 vboxPushResultAsString(hr);
447 HRESULT hr = vboxPopString(szMsg, sizeof(szMsg) / sizeof(char));
448 if (SUCCEEDED(hr))
449 hr = vboxPopString(szTitle, sizeof(szTitle) / sizeof(char));
453 if (SUCCEEDED(hr))
470 if (SUCCEEDED(hr))
471 hr = vboxPopULong((ULONG*)&pIpcMsg->uType);
472 if (SUCCEEDED(hr))
473 hr = vboxPopULong((ULONG*)&pIpcMsg->uShowMS);
475 if (SUCCEEDED(hr))
494 hr = __HRESULT_FROM_WIN32(ERROR_BROKEN_PIPE);
500 hr = __HRESULT_FROM_WIN32(ERROR_NOT_ENOUGH_MEMORY);
504 SUCCEEDED(hr) ? pushstring("0") : pushstring("1");