HRESULT_CODE

HRESULT_CODE(HRESULT hr)

HRESULT_CODE returns the error code part from a specified status code.