Udostępnij za pośrednictwem


AtlHresultFromWin32

Converts a Win32 error code into an HRESULT.

AtlHresultFromWin32{
   DWORD error
};

Parameters

  • error
    The error value to convert.

Remarks

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

Note

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

Requirements

Header: atlcomcli.h

See Also

Reference

HRESULT_FROM_WIN32

AtlHresultFromLastError

Other Resources

Debugging and Error Reporting Global Functions