MAKE_SCODE macro (winerror.h)

Creates an SCODE value from its component pieces.

Syntax

void MAKE_SCODE(
   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_SCODE(sev,fac,code) \
    ((SCODE) (((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 winerror.h

See also

Error Handling