Release 980822
[wine/multimedia.git] / include / winerror.h
blob91db7950df3d02ddf7c70fa2c4d5ebd764b490a7
1 #ifndef __WINE_WINERROR_H
2 #define __WINE_WINERROR_H
5 extern int WIN32_LastError;
7 #define FACILITY_WIN32 7
9 #define SEVERITY_ERROR 1
12 #define MAKE_HRESULT(sev,fac,code) \
13 ((HRESULT) (((unsigned long)(sev)<<31) | ((unsigned long)(fac)<<16) | ((unsigned long)(code))) )
14 #define MAKE_SCODE(sev,fac,code) \
15 ((SCODE) (((unsigned long)(sev)<<31) | ((unsigned long)(fac)<<16) | ((unsigned long)(code))) )
18 /* ERROR_UNKNOWN is a placeholder for error conditions which haven't
19 * been tested yet so we're not exactly sure what will be returned.
20 * All instances of ERROR_UNKNOWN should be tested under Win95/NT
21 * and replaced.
23 #define ERROR_UNKNOWN 99999
25 #define SEVERITY_SUCCESS 0
26 #define SEVERITY_ERROR 1
28 #define ERROR_SUCCESS 0
29 #define ERROR_FILE_NOT_FOUND 2
30 #define ERROR_PATH_NOT_FOUND 3
31 #define ERROR_TOO_MANY_OPEN_FILES 4
32 #define ERROR_ACCESS_DENIED 5
33 #define ERROR_INVALID_HANDLE 6
34 #define ERROR_NOT_ENOUGH_MEMORY 8
35 #define ERROR_BAD_FORMAT 11
36 #define ERROR_INVALID_ACCESS 12
37 #define ERROR_INVALID_DATA 13
38 #define ERROR_OUTOFMEMORY 14
39 #define ERROR_NO_MORE_FILES 18
40 #define ERROR_SHARING_VIOLATION 32
41 #define ERROR_LOCK_VIOLATION 33
42 #define ERROR_DUP_NAME 52
43 #define ERROR_BAD_NETPATH 53
44 #define ERROR_FILE_EXISTS 80
45 #define ERROR_CANNOT_MAKE 82
46 #define ERROR_INVALID_PARAMETER 87
47 #define ERROR_BROKEN_PIPE 109
48 #define ERROR_DISK_FULL 112
49 #define ERROR_CALL_NOT_IMPLEMENTED 120
50 #define ERROR_INSUFFICIENT_BUFFER 122
51 #define ERROR_SEEK_ON_DEVICE 132
52 #define ERROR_DIR_NOT_EMPTY 145
53 #define ERROR_BAD_PATHNAME 161
54 #define ERROR_BUSY 170
55 #define ERROR_ALREADY_EXISTS 183
56 #define ERROR_FILENAME_EXCED_RANGE 206
57 #define ERROR_MORE_DATA 234
58 #define ERROR_NO_MORE_ITEMS 259
59 #define ERROR_NOT_OWNER 288
60 #define ERROR_TOO_MANY_POSTS 298
61 #define ERROR_INVALID_ADDRESS 487
62 #define ERROR_CAN_NOT_COMPLETE 1003
63 #define ERROR_BADKEY 1010 /* Config reg key invalid */
64 #define ERROR_CANTREAD 1012 /* Config reg key couldn't be read */
65 #define ERROR_CANTWRITE 1013 /* Config reg key couldn't be written */
66 #define ERROR_IO_DEVICE 1117
67 #define ERROR_POSSIBLE_DEADLOCK 1131
68 #define ERROR_BAD_DEVICE 1200
69 #define ERROR_NO_NETWORK 1222
70 #define ERROR_ALREADY_INITIALIZED 1247
71 #define ERROR_PRIVILEGE_NOT_HELD 1314
72 #define ERROR_CANNOT_FIND_WND_CLASS 1407
73 #define ERROR_WINDOW_OF_OTHER_THREAD 1408
74 #define ERROR_CLASS_ALREADY_EXISTS 1410
75 #define ERROR_CLASS_DOES_NOT_EXIST 1411
76 #define ERROR_CLASS_HAS_WINDOWS 1412
77 #define ERROR_COMMITMENT_LIMIT 1455
78 #define ERROR_INVALID_PRINTER_NAME 1801
80 /* HRESULT values for OLE, SHELL and other Interface stuff */
81 /* the codes 4000-40ff are reserved for OLE */
82 #define NOERROR 0
83 #define S_OK 0
86 #define E_UNEXPECTED 0x8000FFFF
88 #define E_NOTIMPL 0x80004001
89 #define E_NOINTERFACE 0x80004002
90 #define E_POINTER 0x80004003
91 #define E_ABORT 0x80004004
92 #define E_FAIL 0x80004005
94 /*#define CO_E_INIT_TLS 0x80004006
95 #define CO_E_INIT_SHARED_ALLOCATOR 0x80004007
96 #define CO_E_INIT_MEMORY_ALLOCATOR 0x80004008
97 #define CO_E_INIT_CLASS_CACHE 0x80004009
98 #define CO_E_INIT_RPC_CHANNEL 0x8000400A
99 #define CO_E_INIT_TLS_SET_CHANNEL_CONTROL 0x8000400B
100 #define CO_E_INIT_TLS_CHANNEL_CONTROL 0x8000400C
101 #define CO_E_INIT_UNACCEPTED_USER_ALLOCATOR 0x8000400D
102 #define CO_E_INIT_SCM_MUTEX_EXISTS 0x8000400E
103 #define CO_E_INIT_SCM_FILE_MAPPING_EXISTS 0x8000400F
104 #define CO_E_INIT_SCM_MAP_VIEW_OF_FILE 0x80004010
105 #define CO_E_INIT_SCM_EXEC_FAILURE 0x80004011
106 #define CO_E_INIT_ONLY_SINGLE_THREADED 0x80004012 */
108 #define OLE_E_ENUM_NOMORE 0x80040002
109 #define CLASS_E_NOAGGREGATION 0x80040110
110 #define CLASS_E_CLASSNOTAVAILABLE 0x80040111
111 #define E_ACCESSDENIED 0x80070005
112 #define E_HANDLE 0x80070006
113 #define E_OUTOFMEMORY 0x8007000E
114 #define E_INVALIDARG 0x80070057
116 //#define OLE_E_FIRST 0x80040000L
117 //#define OLE_E_LAST 0x800400FFL
118 //#define OLE_S_FIRST 0x00040000L
119 //#define OLE_S_LAST 0x000400FFL
121 #define STG_E_INVALIDFUNCTION 0x80030001
122 #define STG_E_FILENOTFOUND 0x80030002
123 #define STG_E_PATHNOTFOUND 0x80030003
124 #define STG_E_TOOMANYOPENFILES 0x80030004
125 #define STG_E_ACCESSDENIED 0x80030005
126 #define STG_E_INVALIDHANDLE 0x80030006
127 #define STG_E_INSUFFICIENTMEMORY 0x80030008
128 #define STG_E_INVALIDPOINTER 0x80030009
129 #define STG_E_NOMOREFILES 0x80030012
130 #define STG_E_DISKISWRITEPROTECTED 0x80030013
131 #define STG_E_SEEKERROR 0x80030019
132 #define STG_E_WRITEFAULT 0x8003001D
133 #define STG_E_READFAULT 0x8003001E
134 #define STG_E_SHAREVIOLATION 0x80030020
135 #define STG_E_LOCKVIOLATION 0x80030021
136 #define STG_E_FILEALREADYEXISTS 0x80030050
137 #define STG_E_INVALIDPARAMETER 0x80030057
138 #define STG_E_MEDIUMFULL 0x80030070
139 #define STG_E_ABNORMALAPIEXIT 0x800300FA
140 #define STG_E_INVALIDHEADER 0x800300FB
141 #define STG_E_INVALIDNAME 0x800300FC
142 #define STG_E_UNKNOWN 0x800300FD
143 #define STG_E_UNIMPLEMENTEDFUNCTION 0x800300FE
144 #define STG_E_INVALIDFLAG 0x800300FF
145 #define STG_E_INUSE 0x80030100
146 #define STG_E_NOTCURRENT 0x80030101
147 #define STG_E_REVERTED 0x80030102
148 #define STG_E_CANTSAVE 0x80030103
149 #define STG_E_OLDFORMAT 0x80030104
150 #define STG_E_OLDDLL 0x80030105
151 #define STG_E_SHAREREQUIRED 0x80030106
152 #define STG_E_NOTFILEBASEDSTORAGE 0x80030107
153 #define STG_E_EXTANTMARSHALLINGS 0x80030108
155 /* alten versionen
156 #define E_NOTIMPL 0x80000001
157 #define E_OUTOFMEMORY 0x80000002
158 #define E_INVALIDARG 0x80000003
159 #define E_NOINTERFACE 0x80000004
160 #define E_POINTER 0x80000005
161 #define E_HANDLE 0x80000006
162 #define E_ABORT 0x80000007
163 #define E_FAIL 0x80000008
164 #define E_ACCESSDENIED 0x80000009 */
166 /* Obtained from lcc-win32 include files */
167 #define GDI_ERROR 0xffffffff
169 #endif /* __WINE_WINERROR_H */