Was this page helpful?
Your feedback about this content is important. Let us know what you think.
Additional feedback?
1500 characters remaining
Export (0) Print
Expand All

HRESULT_FACILITY macro

Extracts the facility of the specified HRESULT.

Syntax


WORD HRESULT_FACILITY(
   HRESULT hr
);

Parameters

hr

The HRESULT value.

Return value

The facility.

Remarks

This macro is defined as follows:

#define HRESULT_FACILITY(hr)  (((hr) >> 16) & 0x1fff)

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

 

 

Community Additions

ADD
Show:
© 2015 Microsoft