ReactOS  0.4.15-dev-2776-g4130f0b
stierr.h File Reference

Go to the source code of this file.

Macros

#define NT_SUCCESS(Status)   ((NTSTATUS)(Status) >= 0)
 
#define NT_INFORMATION(Status)   ((ULONG)(Status) >> 30 == 1)
 
#define NT_WARNING(Status)   ((ULONG)(Status) >> 30 == 2)
 
#define NT_ERROR(Status)   ((ULONG)(Status) >> 30 == 3)
 
#define STI_OK   S_OK
 
#define STI_ERROR_NO_ERROR   STI_OK
 
#define STI_NOTCONNECTED   S_FALSE
 
#define STI_CHANGENOEFFECT   S_FALSE
 
#define STIERR_OLD_VERSION   MAKE_HRESULT(SEVERITY_ERROR,FACILITY_WIN32,ERROR_OLD_WIN_VERSION)
 
#define STIERR_BETA_VERSION   MAKE_HRESULT(SEVERITY_ERROR,FACILITY_WIN32,ERROR_RMODE_APP)
 
#define STIERR_BADDRIVER   MAKE_HRESULT(SEVERITY_ERROR,FACILITY_WIN32,ERROR_BAD_DRIVER_LEVEL)
 
#define STIERR_DEVICENOTREG   REGDB_E_CLASSNOTREG
 
#define STIERR_OBJECTNOTFOUND   MAKE_HRESULT(SEVERITY_ERROR,FACILITY_WIN32,ERROR_FILE_NOT_FOUND)
 
#define STIERR_INVALID_PARAM   E_INVALIDARG
 
#define STIERR_NOINTERFACE   E_NOINTERFACE
 
#define STIERR_GENERIC   E_FAIL
 
#define STIERR_OUTOFMEMORY   E_OUTOFMEMORY
 
#define STIERR_UNSUPPORTED   E_NOTIMPL
 
#define STIERR_NOT_INITIALIZED   MAKE_HRESULT(SEVERITY_ERROR,FACILITY_WIN32,ERROR_NOT_READY)
 
#define STIERR_ALREADY_INITIALIZED   MAKE_HRESULT(SEVERITY_ERROR,FACILITY_WIN32,ERROR_ALREADY_INITIALIZED)
 
#define STIERR_DEVICE_LOCKED   MAKE_HRESULT(SEVERITY_ERROR,FACILITY_WIN32,ERROR_LOCK_VIOLATION)
 
#define STIERR_READONLY   E_ACCESSDENIED
 
#define STIERR_NOTINITIALIZED   E_ACCESSDENIED
 
#define STIERR_NEEDS_LOCK   MAKE_HRESULT(SEVERITY_ERROR,FACILITY_WIN32,ERROR_NOT_LOCKED)
 
#define STIERR_SHARING_VIOLATION   MAKE_HRESULT(SEVERITY_ERROR,FACILITY_WIN32,ERROR_SHARING_VIOLATION)
 
#define STIERR_HANDLEEXISTS   MAKE_HRESULT(SEVERITY_ERROR,FACILITY_WIN32,ERROR_ALREADY_EXISTS)
 
#define STIERR_INVALID_DEVICE_NAME   MAKE_HRESULT(SEVERITY_ERROR,FACILITY_WIN32,ERROR_INVALID_NAME)
 
#define STIERR_INVALID_HW_TYPE   MAKE_HRESULT(SEVERITY_ERROR,FACILITY_WIN32,ERROR_INVALID_DATA)
 
#define STIERR_INVALID_HW_TYPE   MAKE_HRESULT(SEVERITY_ERROR,FACILITY_WIN32,ERROR_INVALID_DATA)
 
#define STIERR_NOEVENTS   MAKE_HRESULT(SEVERITY_ERROR,FACILITY_WIN32,ERROR_NO_MORE_ITEMS)
 
#define STIERR_DEVICE_NOTREADY   MAKE_HRESULT(SEVERITY_ERROR,FACILITY_WIN32,ERROR_NOT_READY)
 

Macro Definition Documentation

◆ NT_ERROR

#define NT_ERROR (   Status)    ((ULONG)(Status) >> 30 == 3)

Definition at line 10 of file stierr.h.

◆ NT_INFORMATION

#define NT_INFORMATION (   Status)    ((ULONG)(Status) >> 30 == 1)

Definition at line 8 of file stierr.h.

◆ NT_SUCCESS

#define NT_SUCCESS (   Status)    ((NTSTATUS)(Status) >= 0)

Definition at line 7 of file stierr.h.

◆ NT_WARNING

#define NT_WARNING (   Status)    ((ULONG)(Status) >> 30 == 2)

Definition at line 9 of file stierr.h.

◆ STI_CHANGENOEFFECT

#define STI_CHANGENOEFFECT   S_FALSE

Definition at line 14 of file stierr.h.

◆ STI_ERROR_NO_ERROR

#define STI_ERROR_NO_ERROR   STI_OK

Definition at line 12 of file stierr.h.

◆ STI_NOTCONNECTED

#define STI_NOTCONNECTED   S_FALSE

Definition at line 13 of file stierr.h.

◆ STI_OK

#define STI_OK   S_OK

Definition at line 11 of file stierr.h.

◆ STIERR_ALREADY_INITIALIZED

Definition at line 26 of file stierr.h.

◆ STIERR_BADDRIVER

Definition at line 17 of file stierr.h.

◆ STIERR_BETA_VERSION

Definition at line 16 of file stierr.h.

◆ STIERR_DEVICE_LOCKED

Definition at line 27 of file stierr.h.

◆ STIERR_DEVICE_NOTREADY

Definition at line 37 of file stierr.h.

◆ STIERR_DEVICENOTREG

#define STIERR_DEVICENOTREG   REGDB_E_CLASSNOTREG

Definition at line 18 of file stierr.h.

◆ STIERR_GENERIC

#define STIERR_GENERIC   E_FAIL

Definition at line 22 of file stierr.h.

◆ STIERR_HANDLEEXISTS

Definition at line 32 of file stierr.h.

◆ STIERR_INVALID_DEVICE_NAME

Definition at line 33 of file stierr.h.

◆ STIERR_INVALID_HW_TYPE [1/2]

Definition at line 35 of file stierr.h.

◆ STIERR_INVALID_HW_TYPE [2/2]

Definition at line 35 of file stierr.h.

◆ STIERR_INVALID_PARAM

#define STIERR_INVALID_PARAM   E_INVALIDARG

Definition at line 20 of file stierr.h.

◆ STIERR_NEEDS_LOCK

Definition at line 30 of file stierr.h.

◆ STIERR_NOEVENTS

Definition at line 36 of file stierr.h.

◆ STIERR_NOINTERFACE

#define STIERR_NOINTERFACE   E_NOINTERFACE

Definition at line 21 of file stierr.h.

◆ STIERR_NOT_INITIALIZED

Definition at line 25 of file stierr.h.

◆ STIERR_NOTINITIALIZED

#define STIERR_NOTINITIALIZED   E_ACCESSDENIED

Definition at line 29 of file stierr.h.

◆ STIERR_OBJECTNOTFOUND

Definition at line 19 of file stierr.h.

◆ STIERR_OLD_VERSION

Definition at line 15 of file stierr.h.

◆ STIERR_OUTOFMEMORY

#define STIERR_OUTOFMEMORY   E_OUTOFMEMORY

Definition at line 23 of file stierr.h.

◆ STIERR_READONLY

#define STIERR_READONLY   E_ACCESSDENIED

Definition at line 28 of file stierr.h.

◆ STIERR_SHARING_VIOLATION

Definition at line 31 of file stierr.h.

◆ STIERR_UNSUPPORTED

#define STIERR_UNSUPPORTED   E_NOTIMPL

Definition at line 24 of file stierr.h.