Information
The topic you requested is included in another documentation set. For convenience, it's displayed below. Choose Switch to see the topic in its original location.

AtlHresultFromWin32

 

Converts a Win32 error code into an HRESULT.


      AtlHresultFromWin32{
   DWORD error
};

error

The error value to convert.

Converts a Win32 error code into an HRESULT, using the macro HRESULT_FROM_WIN32.

System_CAPS_noteNote

Instead of using HRESULT_FROM_WIN32(GetLastError()), use the function AtlHresultFromLastError.

Requirements

Header: atlcomcli.h

Show: