Release 980628
[wine/multimedia.git] / include / winerror.h
blob441f839b427d5cee31b32d635cca2d476d8ae4ba
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 ERROR_SUCCESS 0
26 #define ERROR_FILE_NOT_FOUND 2
27 #define ERROR_PATH_NOT_FOUND 3
28 #define ERROR_TOO_MANY_OPEN_FILES 4
29 #define ERROR_ACCESS_DENIED 5
30 #define ERROR_INVALID_HANDLE 6
31 #define ERROR_NOT_ENOUGH_MEMORY 8
32 #define ERROR_BAD_FORMAT 11
33 #define ERROR_INVALID_ACCESS 12
34 #define ERROR_INVALID_DATA 13
35 #define ERROR_OUTOFMEMORY 14
36 #define ERROR_NO_MORE_FILES 18
37 #define ERROR_SHARING_VIOLATION 32
38 #define ERROR_LOCK_VIOLATION 33
39 #define ERROR_DUP_NAME 52
40 #define ERROR_BAD_NETPATH 53
41 #define ERROR_FILE_EXISTS 80
42 #define ERROR_CANNOT_MAKE 82
43 #define ERROR_INVALID_PARAMETER 87
44 #define ERROR_BROKEN_PIPE 109
45 #define ERROR_DISK_FULL 112
46 #define ERROR_CALL_NOT_IMPLEMENTED 120
47 #define ERROR_INSUFFICIENT_BUFFER 122
48 #define ERROR_SEEK_ON_DEVICE 132
49 #define ERROR_DIR_NOT_EMPTY 145
50 #define ERROR_BAD_PATHNAME 161
51 #define ERROR_BUSY 170
52 #define ERROR_ALREADY_EXISTS 183
53 #define ERROR_FILENAME_EXCED_RANGE 206
54 #define ERROR_MORE_DATA 234
55 #define ERROR_NO_MORE_ITEMS 259
56 #define ERROR_NOT_OWNER 288
57 #define ERROR_TOO_MANY_POSTS 298
58 #define ERROR_INVALID_ADDRESS 487
59 #define ERROR_CAN_NOT_COMPLETE 1003
60 #define ERROR_BADKEY 1010 /* Config reg key invalid */
61 #define ERROR_CANTREAD 1012 /* Config reg key couldn't be read */
62 #define ERROR_CANTWRITE 1013 /* Config reg key couldn't be written */
63 #define ERROR_IO_DEVICE 1117
64 #define ERROR_POSSIBLE_DEADLOCK 1131
65 #define ERROR_BAD_DEVICE 1200
66 #define ERROR_NO_NETWORK 1222
67 #define ERROR_ALREADY_INITIALIZED 1247
68 #define ERROR_PRIVILEGE_NOT_HELD 1314
69 #define ERROR_COMMITMENT_LIMIT 1455
70 #define ERROR_INVALID_PRINTER_NAME 1801
72 /* HRESULT values for OLE, SHELL and other Interface stuff */
73 /* the codes 4000-40ff are reserved for OLE */
74 #define NOERROR 0
75 #define S_OK 0
78 #define E_UNEXPECTED 0x8000FFFF
80 #define E_NOTIMPL 0x80004001
81 #define E_NOINTERFACE 0x80004002
82 #define E_POINTER 0x80004003
83 #define E_ABORT 0x80004004
84 #define E_FAIL 0x80004005
86 /*#define CO_E_INIT_TLS 0x80004006
87 #define CO_E_INIT_SHARED_ALLOCATOR 0x80004007
88 #define CO_E_INIT_MEMORY_ALLOCATOR 0x80004008
89 #define CO_E_INIT_CLASS_CACHE 0x80004009
90 #define CO_E_INIT_RPC_CHANNEL 0x8000400A
91 #define CO_E_INIT_TLS_SET_CHANNEL_CONTROL 0x8000400B
92 #define CO_E_INIT_TLS_CHANNEL_CONTROL 0x8000400C
93 #define CO_E_INIT_UNACCEPTED_USER_ALLOCATOR 0x8000400D
94 #define CO_E_INIT_SCM_MUTEX_EXISTS 0x8000400E
95 #define CO_E_INIT_SCM_FILE_MAPPING_EXISTS 0x8000400F
96 #define CO_E_INIT_SCM_MAP_VIEW_OF_FILE 0x80004010
97 #define CO_E_INIT_SCM_EXEC_FAILURE 0x80004011
98 #define CO_E_INIT_ONLY_SINGLE_THREADED 0x80004012 */
101 #define OLE_E_ENUM_NOMORE 0x80040002
102 #define CLASS_E_CLASSNOTAVAILABLE 0x80040111
104 #define E_ACCESSDENIED 0x80070005
105 #define E_HANDLE 0x80070006
106 #define E_OUTOFMEMORY 0x8007000E
107 #define E_INVALIDARG 0x80070057
109 //#define OLE_E_FIRST 0x80040000L
110 //#define OLE_E_LAST 0x800400FFL
111 //#define OLE_S_FIRST 0x00040000L
112 //#define OLE_S_LAST 0x000400FFL
114 #define STG_E_INVALIDFUNCTION 0x80030001
115 #define STG_E_FILENOTFOUND 0x80030002
116 #define STG_E_PATHNOTFOUND 0x80030003
117 #define STG_E_TOOMANYOPENFILES 0x80030004
118 #define STG_E_ACCESSDENIED 0x80030005
119 #define STG_E_INVALIDHANDLE 0x80030006
120 #define STG_E_INSUFFICIENTMEMORY 0x80030008
121 #define STG_E_INVALIDPOINTER 0x80030009
122 #define STG_E_NOMOREFILES 0x80030012
123 #define STG_E_DISKISWRITEPROTECTED 0x80030013
124 #define STG_E_SEEKERROR 0x80030019
125 #define STG_E_WRITEFAULT 0x8003001D
126 #define STG_E_READFAULT 0x8003001E
127 #define STG_E_SHAREVIOLATION 0x80030020
128 #define STG_E_LOCKVIOLATION 0x80030021
129 #define STG_E_FILEALREADYEXISTS 0x80030050
130 #define STG_E_INVALIDPARAMETER 0x80030057
131 #define STG_E_MEDIUMFULL 0x80030070
132 #define STG_E_ABNORMALAPIEXIT 0x800300FA
133 #define STG_E_INVALIDHEADER 0x800300FB
134 #define STG_E_INVALIDNAME 0x800300FC
135 #define STG_E_UNKNOWN 0x800300FD
136 #define STG_E_UNIMPLEMENTEDFUNCTION 0x800300FE
137 #define STG_E_INVALIDFLAG 0x800300FF
138 #define STG_E_INUSE 0x80030100
139 #define STG_E_NOTCURRENT 0x80030101
140 #define STG_E_REVERTED 0x80030102
141 #define STG_E_CANTSAVE 0x80030103
142 #define STG_E_OLDFORMAT 0x80030104
143 #define STG_E_OLDDLL 0x80030105
144 #define STG_E_SHAREREQUIRED 0x80030106
145 #define STG_E_NOTFILEBASEDSTORAGE 0x80030107
146 #define STG_E_EXTANTMARSHALLINGS 0x80030108
148 /* alten versionen
149 #define E_NOTIMPL 0x80000001
150 #define E_OUTOFMEMORY 0x80000002
151 #define E_INVALIDARG 0x80000003
152 #define E_NOINTERFACE 0x80000004
153 #define E_POINTER 0x80000005
154 #define E_HANDLE 0x80000006
155 #define E_ABORT 0x80000007
156 #define E_FAIL 0x80000008
157 #define E_ACCESSDENIED 0x80000009 */
159 #endif /* __WINE_WINERROR_H */