HRESULT_FROM_NT macro

Maps an NT status value to an HRESULT value.

Syntax


HRESULT HRESULT_FROM_NT(
   DWORD x
);

Parameters

x

The NT status value.

Return value

The HRESULT value.

Remarks

This macro is defined as follows:

#define HRESULT_FROM_NT(x)      ((HRESULT) ((x) | FACILITY_NT_BIT))

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: