Converts a Win32 error HRESULT to a STG_E_ HRESULT
Syntax
HRESULT WINAPI MapWin32ErrorToSTG (
HRESULT hrWin32
)
Parameters
- hrWin32
- The Win32 HRESULT to map
Return Value
The converted HRESULT, or the input HRESULT if there is no mapping
Remarks
The convertable error codes are HRESULT_FROM_WIN32-ified ERROR_PATH_NOT_FOUND, ERROR_ACCESS_DENIED, ERROR_FILE_EXISTS, ERROR_DISK_FULL and ERROR_ALREADY_EXISTS.
This function is also known as _MapWin32ErrorToSTG@4.