HRESULT_CODE macro
Extracts the code portion of the specified HRESULT.
Syntax
WORD HRESULT_CODE( HRESULT hr );
Parameters
- hr
-
The HRESULT value.
Return value
The code.
Remarks
This macro is defined as follows:
#define HRESULT_CODE(hr) ((hr) & 0xFFFF)
Requirements
|
Minimum supported client |
Windows 2000 Professional [desktop apps only] |
|---|---|
|
Minimum supported server |
Windows 2000 Server [desktop apps only] |
|
Header |
|
See also
Show: