MAKE_HRESULT macro

Creates an HRESULT value from its component pieces.

Syntax


HRESULT MAKE_HRESULT(
  WORD sev,
  WORD fac,
  WORD code
);

Parameters

sev

The severity.

fac

The facility.

code

The code.

Return value

The HRESULT value.

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

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

 

 

Community Additions

ADD
Show:
© 2014 Microsoft