mirror of
https://github.com/vxunderground/VX-API
synced 2026-06-06 16:54:55 +00:00
f0b5d2bd5d
Some function names renamed to avoid confusion, some function annotations added.
12 lines
262 B
C++
12 lines
262 B
C++
#include "Win32Helper.h"
|
|
|
|
DWORD Win32FromHResult(_In_ HRESULT Result)
|
|
{
|
|
if ((Result & 0xFFFF0000) == MAKE_HRESULT(SEVERITY_ERROR, FACILITY_WIN32, 0))
|
|
return HRESULT_CODE(Result);
|
|
|
|
if (Result == S_OK)
|
|
return ERROR_SUCCESS;
|
|
|
|
return ERROR_CAN_NOT_COMPLETE;
|
|
} |