SCODE_SEVERITY macro

Extracts the severity field of the specified SCODE.

Syntax


DWORD SCODE_SEVERITY(
   SCODE sc
);

Parameters

sc

The status code.

Return value

The severity field.

Remarks

This macro is defined as follows:

#define SCODE_SEVERITY(sc)    (((sc) >> 31) & 0x1)

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

 

 

Show: