HRESULT_FACILITY macro (winerror.h)

Extracts the facility of the specified HRESULT.

Syntax

void HRESULT_FACILITY(
   hr
);

Parameters

hr

The HRESULT value.

Return value

None

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]
Target Platform Windows
Header winerror.h

See also

Error Handling