Main Page | Class Hierarchy | Class List | File List | Class Members | File Members

stierr.h

Go to the documentation of this file.
00001 /*++ 00002 00003 Copyright (c) 1986-1997 Microsoft Corporation 00004 00005 Module Name: 00006 00007 stierr.h 00008 00009 Abstract: 00010 00011 This module contains the user mode still image APIs error and status codes 00012 00013 Author: 00014 00015 00016 Revision History: 00017 00018 00019 --*/ 00020 00021 #ifndef _STIERR_ 00022 #define _STIERR_ 00023 00024 00025 // 00026 // Generic test for success on any status value (non-negative numbers 00027 // indicate success). 00028 // 00029 00030 #define NT_SUCCESS(Status) ((NTSTATUS)(Status) >= 0) 00031 00032 // 00033 // Generic test for information on any status value. 00034 // 00035 00036 #define NT_INFORMATION(Status) ((ULONG)(Status) >> 30 == 1) 00037 00038 // 00039 // Generic test for warning on any status value. 00040 // 00041 00042 #define NT_WARNING(Status) ((ULONG)(Status) >> 30 == 2) 00043 00044 // 00045 // Generic test for error on any status value. 00046 // 00047 00048 #define NT_ERROR(Status) ((ULONG)(Status) >> 30 == 3) 00049 00050 // 00051 // Error codes are constructed as compound COM status codes 00052 // 00053 00054 /* 00055 * The operation completed successfully 00056 */ 00057 #define STI_OK S_OK 00058 #define STI_ERROR_NO_ERROR STI_OK 00059 00060 /* 00061 * The device exists but not currently attached to the system 00062 */ 00063 #define STI_NOTCONNECTED S_FALSE 00064 00065 /* 00066 * The requested change in device mode settings had no effect 00067 */ 00068 #define STI_CHANGENOEFFECT S_FALSE 00069 00070 /* 00071 * The application requires newer version 00072 */ 00073 #define STIERR_OLD_VERSION \ 00074 MAKE_HRESULT(SEVERITY_ERROR,FACILITY_WIN32,ERROR_OLD_WIN_VERSION) 00075 00076 /* 00077 * The application was written for pre-release version of provider DLL 00078 */ 00079 #define STIERR_BETA_VERSION \ 00080 MAKE_HRESULT(SEVERITY_ERROR,FACILITY_WIN32,ERROR_RMODE_APP) 00081 00082 /* 00083 * The requested object could not be created due to incompatible or mismatched driver 00084 */ 00085 #define STIERR_BADDRIVER \ 00086 MAKE_HRESULT(SEVERITY_ERROR,FACILITY_WIN32,ERROR_BAD_DRIVER_LEVEL) 00087 00088 /* 00089 * The device is not registered 00090 */ 00091 #define STIERR_DEVICENOTREG REGDB_E_CLASSNOTREG 00092 00093 /* 00094 * The requested container does not exist 00095 */ 00096 #define STIERR_OBJECTNOTFOUND \ 00097 MAKE_HRESULT(SEVERITY_ERROR,FACILITY_WIN32,ERROR_FILE_NOT_FOUND) 00098 00099 /* 00100 * An invalid or not state matching parameter was passed to the API 00101 */ 00102 #define STIERR_INVALID_PARAM E_INVALIDARG 00103 00104 /* 00105 * The specified interface is not supported 00106 */ 00107 #define STIERR_NOINTERFACE E_NOINTERFACE 00108 00109 /* 00110 * The undetermined error occured 00111 */ 00112 #define STIERR_GENERIC E_FAIL 00113 00114 /* 00115 * There is not enough memory to perform requested operation 00116 */ 00117 #define STIERR_OUTOFMEMORY E_OUTOFMEMORY 00118 00119 /* 00120 * The application called unsupported (at this time)function 00121 */ 00122 #define STIERR_UNSUPPORTED E_NOTIMPL 00123 00124 /* 00125 * The application requires newer version 00126 */ 00127 #define STIERR_NOT_INITIALIZED \ 00128 MAKE_HRESULT(SEVERITY_ERROR,FACILITY_WIN32,ERROR_NOT_READY) 00129 00130 /* 00131 * The application requires newer version 00132 */ 00133 #define STIERR_ALREADY_INITIALIZED \ 00134 MAKE_HRESULT(SEVERITY_ERROR,FACILITY_WIN32,ERROR_ALREADY_INITIALIZED) 00135 00136 /* 00137 * The operation can not performed while device is locked 00138 */ 00139 #define STIERR_DEVICE_LOCKED \ 00140 MAKE_HRESULT(SEVERITY_ERROR,FACILITY_WIN32,ERROR_LOCK_VIOLATION) 00141 00142 /* 00143 * The specified propery can not be changed for this device 00144 */ 00145 #define STIERR_READONLY E_ACCESSDENIED 00146 00147 /* 00148 * The device already has notification handle associated with it 00149 */ 00150 #define STIERR_NOTINITIALIZED E_ACCESSDENIED 00151 00152 00153 /* 00154 * The device needs to be locked before attempting this operation 00155 */ 00156 #define STIERR_NEEDS_LOCK \ 00157 MAKE_HRESULT(SEVERITY_ERROR,FACILITY_WIN32,ERROR_NOT_LOCKED) 00158 00159 /* 00160 * The device is opened by another application in data mode 00161 */ 00162 #define STIERR_SHARING_VIOLATION \ 00163 MAKE_HRESULT(SEVERITY_ERROR,FACILITY_WIN32,ERROR_SHARING_VIOLATION) 00164 00165 00166 /* 00167 * Handle already set for this context 00168 */ 00169 #define STIERR_HANDLEEXISTS \ 00170 MAKE_HRESULT(SEVERITY_ERROR,FACILITY_WIN32,ERROR_ALREADY_EXISTS) 00171 00172 /* 00173 * Device name is not recognized 00174 */ 00175 #define STIERR_INVALID_DEVICE_NAME \ 00176 MAKE_HRESULT(SEVERITY_ERROR,FACILITY_WIN32,ERROR_INVALID_NAME) 00177 00178 /* 00179 * Device hardware type is not valid 00180 */ 00181 #define STIERR_INVALID_HW_TYPE \ 00182 MAKE_HRESULT(SEVERITY_ERROR,FACILITY_WIN32,ERROR_INVALID_DATA) 00183 00184 00185 /* 00186 * Device hardware type is not valid 00187 */ 00188 #define STIERR_INVALID_HW_TYPE \ 00189 MAKE_HRESULT(SEVERITY_ERROR,FACILITY_WIN32,ERROR_INVALID_DATA) 00190 00191 /* 00192 * No events available 00193 */ 00194 #define STIERR_NOEVENTS \ 00195 MAKE_HRESULT(SEVERITY_ERROR,FACILITY_WIN32,ERROR_NO_MORE_ITEMS) 00196 00197 00198 //#define STIERR_ 00199 00200 00201 #endif // _STIERR_ 00202 00203 00204

Generated on Sat May 15 19:41:52 2004 for test by doxygen 1.3.7