Export (0) Print
Expand All
0 out of 2 rated this helpful - Rate this topic

HRESULT_SEVERITY macro

Extracts the severity field of the specified HRESULT.

Syntax


DWORD HRESULT_SEVERITY(
  HRESULT hr
);

Parameters

hr

The HRESULT.

Return value

The severity field.

Remarks

This macro is defined as follows:

#define HRESULT_SEVERITY(hr)  (((hr) >> 31) & 0x1)

Requirements

Minimum supported client

Windows 2000 Professional [desktop apps only]

Minimum supported server

Windows 2000 Server [desktop apps only]

Header

Winerror.h

See also

Error Handling

 

 

Did you find this helpful?
(1500 characters remaining)
Thank you for your feedback

Community Additions

ADD
Show:
© 2014 Microsoft. All rights reserved.