Updated msvideo. New program 'icinfo [-about] [-configure]' to
[wine/gsoc_dplay.git] / include / winerror.h
blobf3367b3b8bada147b15d30ddbbfd72b26d003f32
1 #ifndef __WINE_WINERROR_H
2 #define __WINE_WINERROR_H
5 extern int WIN32_LastError;
7 #define FACILITY_ITF 4
8 #define FACILITY_WIN32 7
10 #define SEVERITY_ERROR 1
13 #define MAKE_HRESULT(sev,fac,code) \
14 ((HRESULT) (((unsigned long)(sev)<<31) | ((unsigned long)(fac)<<16) | ((unsigned long)(code))) )
15 #define MAKE_SCODE(sev,fac,code) \
16 ((SCODE) (((unsigned long)(sev)<<31) | ((unsigned long)(fac)<<16) | ((unsigned long)(code))) )
17 #define SUCCEEDED(stat) ((HRESULT)(stat)>=0)
18 #define FAILED(stat) ((HRESULT)(stat)<0)
20 /* ERROR_UNKNOWN is a placeholder for error conditions which haven't
21 * been tested yet so we're not exactly sure what will be returned.
22 * All instances of ERROR_UNKNOWN should be tested under Win95/NT
23 * and replaced.
25 #define ERROR_UNKNOWN 99999
27 #define SEVERITY_SUCCESS 0
28 #define SEVERITY_ERROR 1
30 #define NO_ERROR 0
31 #define ERROR_SUCCESS 0
32 #define ERROR_INVALID_FUNCTION 1
33 #define ERROR_FILE_NOT_FOUND 2
34 #define ERROR_PATH_NOT_FOUND 3
35 #define ERROR_TOO_MANY_OPEN_FILES 4
36 #define ERROR_ACCESS_DENIED 5
37 #define ERROR_INVALID_HANDLE 6
38 #define ERROR_NOT_ENOUGH_MEMORY 8
39 #define ERROR_BAD_FORMAT 11
40 #define ERROR_INVALID_ACCESS 12
41 #define ERROR_INVALID_DATA 13
42 #define ERROR_OUTOFMEMORY 14
43 #define ERROR_INVALID_DRIVE 15
44 #define ERROR_CURRENT_DIRECTORY 16
45 #define ERROR_NOT_SAME_DEVICE 17
46 #define ERROR_NO_MORE_FILES 18
47 #define ERROR_WRITE_PROTECT 19
48 #define ERROR_BAD_UNIT 20
49 #define ERROR_NOT_READY 21
50 #define ERROR_BAD_COMMAND 22
51 #define ERROR_CRC 23
52 #define ERROR_BAD_LENGTH 24
53 #define ERROR_SEEK 25
54 #define ERROR_NOT_DOS_DISK 26
55 #define ERROR_SECTOR_NOT_FOUND 27
56 #define ERROR_WRITE_FAULT 29
57 #define ERROR_READ_FAULT 30
58 #define ERROR_ALREADY_ASSIGNED 85
59 #define ERROR_INVALID_PASSWORD 86
60 #define ERROR_NET_WRITE_FAULT 88
61 #define ERROR_SHARING_VIOLATION 32
62 #define ERROR_LOCK_VIOLATION 33
63 #define ERROR_WRONG_DISK 34
64 #define ERROR_SHARING_BUFFER_EXCEEDED 36
65 #define ERROR_HANDLE_EOF 38
66 #define ERROR_HANDLE_DISK_FULL 39
67 #define ERROR_DUP_NAME 52
68 #define ERROR_BAD_NETPATH 53
69 #define ERROR_NETWORK_BUSY 54
70 #define ERROR_DEV_NOT_EXIST 55
71 #define ERROR_ADAP_HDW_ERR 57
72 #define ERROR_BAD_NET_RESP 58
73 #define ERROR_UNEXP_NET_ERR 59
74 #define ERROR_BAD_REM_ADAP 60
75 #define ERROR_NO_SPOOL_SPACE 62
76 #define ERROR_NETNAME_DELETED 64
77 #define ERROR_NETWORK_ACCESS_DENIED 65
78 #define ERROR_BAD_DEV_TYPE 66
79 #define ERROR_BAD_NET_NAME 67
80 #define ERROR_TOO_MANY_NAMES 68
81 #define ERROR_SHARING_PAUSED 70
82 #define ERROR_REQ_NOT_ACCEP 71
83 #define ERROR_FILE_EXISTS 80
84 #define ERROR_CANNOT_MAKE 82
85 #define ERROR_INVALID_PARAMETER 87
86 #define ERROR_DISK_CHANGE 107
87 #define ERROR_DRIVE_LOCKED 108
88 #define ERROR_BROKEN_PIPE 109
89 #define ERROR_BUFFER_OVERFLOW 111
90 #define ERROR_DISK_FULL 112
91 #define ERROR_NO_MORE_SEARCH_HANDLES 113
92 #define ERROR_INVALID_TARGET_HANDLE 114
93 #define ERROR_INVALID_CATEGORY 117
94 #define ERROR_CALL_NOT_IMPLEMENTED 120
95 #define ERROR_INSUFFICIENT_BUFFER 122
96 #define ERROR_INVALID_NAME 123
97 #define ERROR_INVALID_LEVEL 124
98 #define ERROR_NO_VOLUME_LABEL 125
99 #define ERROR_NEGATIVE_SEEK 131
100 #define ERROR_SEEK_ON_DEVICE 132
101 #define ERROR_DIR_NOT_ROOT 144
102 #define ERROR_DIR_NOT_EMPTY 145
103 #define ERROR_LABEL_TOO_LONG 154
104 #define ERROR_BAD_PATHNAME 161
105 #define ERROR_LOCK_FAILED 167
106 #define ERROR_BUSY 170
107 #define ERROR_INVALID_ORDINAL 182
108 #define ERROR_ALREADY_EXISTS 183
109 #define ERROR_INVALID_EXE_SIGNATURE 191
110 #define ERROR_BAD_EXE_FORMAT 193
111 #define ERROR_FILENAME_EXCED_RANGE 206
112 #define ERROR_META_EXPANSION_TOO_LONG 208
113 #define ERROR_BAD_PIPE 230
114 #define ERROR_PIPE_BUSY 231
115 #define ERROR_NO_DATA 232
116 #define ERROR_PIPE_NOT_CONNECTED 233
117 #define ERROR_MORE_DATA 234
118 #define ERROR_NO_MORE_ITEMS 259
119 #define ERROR_DIRECTORY 267
120 #define ERROR_NOT_OWNER 288
121 #define ERROR_TOO_MANY_POSTS 298
122 #define ERROR_INVALID_ADDRESS 487
123 #define ERROR_OPERATION_ABORTED 995
124 #define ERROR_IO_INCOMPLETE 996
125 #define ERROR_IO_PENDING 997
126 #define ERROR_INVALID_ACCESS_TO_MEM 998
127 #define ERROR_SWAPERROR 999
128 #define ERROR_CAN_NOT_COMPLETE 1003
129 #define ERROR_BADKEY 1010 /* Config reg key invalid */
130 #define ERROR_CANTREAD 1012 /* Config reg key couldn't be read */
131 #define ERROR_CANTWRITE 1013 /* Config reg key couldn't be written */
132 #define ERROR_IO_DEVICE 1117
133 #define ERROR_POSSIBLE_DEADLOCK 1131
134 #define ERROR_BAD_DEVICE 1200
135 #define ERROR_NO_NETWORK 1222
136 #define ERROR_ALREADY_INITIALIZED 1247
137 #define ERROR_PRIVILEGE_NOT_HELD 1314
138 #define ERROR_INVALID_WINDOW_HANDLE 1400
139 #define ERROR_CANNOT_FIND_WND_CLASS 1407
140 #define ERROR_WINDOW_OF_OTHER_THREAD 1408
141 #define ERROR_CLASS_ALREADY_EXISTS 1410
142 #define ERROR_CLASS_DOES_NOT_EXIST 1411
143 #define ERROR_CLASS_HAS_WINDOWS 1412
144 #define ERROR_COMMITMENT_LIMIT 1455
145 #define ERROR_INVALID_PRINTER_NAME 1801
147 /* HRESULT values for OLE, SHELL and other Interface stuff */
148 /* the codes 4000-40ff are reserved for OLE */
149 #define NOERROR 0L
150 #define S_OK ((HRESULT)0L)
151 #define S_FALSE ((HRESULT)1L)
153 #define DISP_E_BADVARTYPE 0x80020008L
154 #define DISP_E_OVERFLOW 0x8002000AL
155 #define DISP_E_TYPEMISMATCH 0x80020005L
156 #define DISP_E_ARRAYISLOCKED 0x8002000D
157 #define DISP_E_BADINDEX 0x8002000B
161 /* Drag and Drop */
162 #define DRAGDROP_S_DROP 0x00040100L
163 #define DRAGDROP_S_CANCEL 0x00040101L
165 #define E_UNEXPECTED 0x8000FFFF
167 #define E_NOTIMPL 0x80004001
168 #define E_NOINTERFACE 0x80004002
169 #define E_POINTER 0x80004003
170 #define E_ABORT 0x80004004
171 #define E_FAIL 0x80004005
173 /*#define CO_E_INIT_TLS 0x80004006
174 #define CO_E_INIT_SHARED_ALLOCATOR 0x80004007
175 #define CO_E_INIT_MEMORY_ALLOCATOR 0x80004008
176 #define CO_E_INIT_CLASS_CACHE 0x80004009
177 #define CO_E_INIT_RPC_CHANNEL 0x8000400A
178 #define CO_E_INIT_TLS_SET_CHANNEL_CONTROL 0x8000400B
179 #define CO_E_INIT_TLS_CHANNEL_CONTROL 0x8000400C
180 #define CO_E_INIT_UNACCEPTED_USER_ALLOCATOR 0x8000400D
181 #define CO_E_INIT_SCM_MUTEX_EXISTS 0x8000400E
182 #define CO_E_INIT_SCM_FILE_MAPPING_EXISTS 0x8000400F
183 #define CO_E_INIT_SCM_MAP_VIEW_OF_FILE 0x80004010
184 #define CO_E_INIT_SCM_EXEC_FAILURE 0x80004011
185 #define CO_E_INIT_ONLY_SINGLE_THREADED 0x80004012 */
187 #define OLE_E_ENUM_NOMORE 0x80040002
188 #define CLASS_E_NOAGGREGATION 0x80040110
189 #define CLASS_E_CLASSNOTAVAILABLE 0x80040111
190 #define E_ACCESSDENIED 0x80070005
191 #define E_HANDLE 0x80070006
192 #define E_OUTOFMEMORY 0x8007000E
193 #define E_INVALIDARG 0x80070057
195 /*#define OLE_E_FIRST 0x80040000L */
196 /*#define OLE_E_LAST 0x800400FFL */
197 /*#define OLE_S_FIRST 0x00040000L */
198 /*#define OLE_S_LAST 0x000400FFL */
200 #define STG_E_INVALIDFUNCTION 0x80030001
201 #define STG_E_FILENOTFOUND 0x80030002
202 #define STG_E_PATHNOTFOUND 0x80030003
203 #define STG_E_TOOMANYOPENFILES 0x80030004
204 #define STG_E_ACCESSDENIED 0x80030005
205 #define STG_E_INVALIDHANDLE 0x80030006
206 #define STG_E_INSUFFICIENTMEMORY 0x80030008
207 #define STG_E_INVALIDPOINTER 0x80030009
208 #define STG_E_NOMOREFILES 0x80030012
209 #define STG_E_DISKISWRITEPROTECTED 0x80030013
210 #define STG_E_SEEKERROR 0x80030019
211 #define STG_E_WRITEFAULT 0x8003001D
212 #define STG_E_READFAULT 0x8003001E
213 #define STG_E_SHAREVIOLATION 0x80030020
214 #define STG_E_LOCKVIOLATION 0x80030021
215 #define STG_E_FILEALREADYEXISTS 0x80030050
216 #define STG_E_INVALIDPARAMETER 0x80030057
217 #define STG_E_MEDIUMFULL 0x80030070
218 #define STG_E_ABNORMALAPIEXIT 0x800300FA
219 #define STG_E_INVALIDHEADER 0x800300FB
220 #define STG_E_INVALIDNAME 0x800300FC
221 #define STG_E_UNKNOWN 0x800300FD
222 #define STG_E_UNIMPLEMENTEDFUNCTION 0x800300FE
223 #define STG_E_INVALIDFLAG 0x800300FF
224 #define STG_E_INUSE 0x80030100
225 #define STG_E_NOTCURRENT 0x80030101
226 #define STG_E_REVERTED 0x80030102
227 #define STG_E_CANTSAVE 0x80030103
228 #define STG_E_OLDFORMAT 0x80030104
229 #define STG_E_OLDDLL 0x80030105
230 #define STG_E_SHAREREQUIRED 0x80030106
231 #define STG_E_NOTFILEBASEDSTORAGE 0x80030107
232 #define STG_E_EXTANTMARSHALLINGS 0x80030108
234 /* alten versionen
235 #define E_NOTIMPL 0x80000001
236 #define E_OUTOFMEMORY 0x80000002
237 #define E_INVALIDARG 0x80000003
238 #define E_NOINTERFACE 0x80000004
239 #define E_POINTER 0x80000005
240 #define E_HANDLE 0x80000006
241 #define E_ABORT 0x80000007
242 #define E_FAIL 0x80000008
243 #define E_ACCESSDENIED 0x80000009 */
245 /* Obtained from lcc-win32 include files */
246 #define GDI_ERROR 0xffffffff
249 /* registry errors */
250 #define REGDB_E_READREGDB 0x80040150
251 #define REGDB_E_CLASSNOTREG 0x80040154
253 #endif /* __WINE_WINERROR_H */