stierr.h
Go to the documentation of this file.00001
00002
00003
00004
00005
00006
00007
00008
00009
00010
00011
00012
00013
00014
00015
00016
00017
00018
00019
00020
00021
#ifndef _STIERR_
00022
#define _STIERR_
00023
00024
00025
00026
00027
00028
00029
00030 #define NT_SUCCESS(Status) ((NTSTATUS)(Status) >= 0)
00031
00032
00033
00034
00035
00036 #define NT_INFORMATION(Status) ((ULONG)(Status) >> 30 == 1)
00037
00038
00039
00040
00041
00042 #define NT_WARNING(Status) ((ULONG)(Status) >> 30 == 2)
00043
00044
00045
00046
00047
00048 #define NT_ERROR(Status) ((ULONG)(Status) >> 30 == 3)
00049
00050
00051
00052
00053
00054
00055
00056
00057 #define STI_OK S_OK
00058 #define STI_ERROR_NO_ERROR STI_OK
00059
00060
00061
00062
00063 #define STI_NOTCONNECTED S_FALSE
00064
00065
00066
00067
00068 #define STI_CHANGENOEFFECT S_FALSE
00069
00070
00071
00072
00073 #define STIERR_OLD_VERSION \
00074
MAKE_HRESULT(SEVERITY_ERROR,FACILITY_WIN32,ERROR_OLD_WIN_VERSION)
00075
00076
00077
00078
00079 #define STIERR_BETA_VERSION \
00080
MAKE_HRESULT(SEVERITY_ERROR,FACILITY_WIN32,ERROR_RMODE_APP)
00081
00082
00083
00084
00085 #define STIERR_BADDRIVER \
00086
MAKE_HRESULT(SEVERITY_ERROR,FACILITY_WIN32,ERROR_BAD_DRIVER_LEVEL)
00087
00088
00089
00090
00091 #define STIERR_DEVICENOTREG REGDB_E_CLASSNOTREG
00092
00093
00094
00095
00096 #define STIERR_OBJECTNOTFOUND \
00097
MAKE_HRESULT(SEVERITY_ERROR,FACILITY_WIN32,ERROR_FILE_NOT_FOUND)
00098
00099
00100
00101
00102 #define STIERR_INVALID_PARAM E_INVALIDARG
00103
00104
00105
00106
00107 #define STIERR_NOINTERFACE E_NOINTERFACE
00108
00109
00110
00111
00112 #define STIERR_GENERIC E_FAIL
00113
00114
00115
00116
00117 #define STIERR_OUTOFMEMORY E_OUTOFMEMORY
00118
00119
00120
00121
00122 #define STIERR_UNSUPPORTED E_NOTIMPL
00123
00124
00125
00126
00127 #define STIERR_NOT_INITIALIZED \
00128
MAKE_HRESULT(SEVERITY_ERROR,FACILITY_WIN32,ERROR_NOT_READY)
00129
00130
00131
00132
00133 #define STIERR_ALREADY_INITIALIZED \
00134
MAKE_HRESULT(SEVERITY_ERROR,FACILITY_WIN32,ERROR_ALREADY_INITIALIZED)
00135
00136
00137
00138
00139 #define STIERR_DEVICE_LOCKED \
00140
MAKE_HRESULT(SEVERITY_ERROR,FACILITY_WIN32,ERROR_LOCK_VIOLATION)
00141
00142
00143
00144
00145 #define STIERR_READONLY E_ACCESSDENIED
00146
00147
00148
00149
00150 #define STIERR_NOTINITIALIZED E_ACCESSDENIED
00151
00152
00153
00154
00155
00156 #define STIERR_NEEDS_LOCK \
00157
MAKE_HRESULT(SEVERITY_ERROR,FACILITY_WIN32,ERROR_NOT_LOCKED)
00158
00159
00160
00161
00162 #define STIERR_SHARING_VIOLATION \
00163
MAKE_HRESULT(SEVERITY_ERROR,FACILITY_WIN32,ERROR_SHARING_VIOLATION)
00164
00165
00166
00167
00168
00169 #define STIERR_HANDLEEXISTS \
00170
MAKE_HRESULT(SEVERITY_ERROR,FACILITY_WIN32,ERROR_ALREADY_EXISTS)
00171
00172
00173
00174
00175 #define STIERR_INVALID_DEVICE_NAME \
00176
MAKE_HRESULT(SEVERITY_ERROR,FACILITY_WIN32,ERROR_INVALID_NAME)
00177
00178
00179
00180
00181
#define STIERR_INVALID_HW_TYPE \
00182
MAKE_HRESULT(SEVERITY_ERROR,FACILITY_WIN32,ERROR_INVALID_DATA)
00183
00184
00185
00186
00187
00188 #define STIERR_INVALID_HW_TYPE \
00189
MAKE_HRESULT(SEVERITY_ERROR,FACILITY_WIN32,ERROR_INVALID_DATA)
00190
00191
00192
00193
00194 #define STIERR_NOEVENTS \
00195
MAKE_HRESULT(SEVERITY_ERROR,FACILITY_WIN32,ERROR_NO_MORE_ITEMS)
00196
00197
00198
00199
00200
00201
#endif // _STIERR_
00202
00203
00204
Generated on Sat May 15 19:41:52 2004 for test by
1.3.7