MAKE_HRESULT macro (dmerror.h)

Creates an HRESULT value from its component pieces.

Syntax

void MAKE_HRESULT(
   sev,
   fac,
   code
);

Parameters

sev

The severity.

fac

The facility.

code

The code.

Return value

None

Remarks

This macro is defined as follows:

#define MAKE_HRESULT(sev,fac,code) \
    ((HRESULT) (((unsigned long)(sev)<<31) | ((unsigned long)(fac)<<16) | ((unsigned long)(code))) )

Requirements

Requirement Value
Minimum supported client Windows 2000 Professional [desktop apps only]
Minimum supported server Windows 2000 Server [desktop apps only]
Target Platform Windows
Header dmerror.h (include Winerror.h, Ddrawi.h, Ddrawint.h, Winerror.h, Ddrawi.h, Ddrawint.h)

See also

Error Handling