Udostępnij za pośrednictwem


AtlHresultFromLastError

Returns the calling thread's last-error code value in the form of an HRESULT.

HRESULT AtlHresultFromLastError( );

Remarks

AtlHresultFromLastError calls GetLastError to obtain the last error and returns the error after converting it to an HRESULT using the HRESULT_FROM_WIN32 macro.

Requirements

Header: atlcomcli.h

See Also

Reference

GetLastError

HRESULT_FROM_WIN32

AtlHresultFromWin32

Other Resources

Debugging and Error Reporting Global Functions