Release 980329
[wine/multimedia.git] / include / winerror.h
blob763a124a9e0809fae2fb16c4e3f8285de763da31
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_OUTOFMEMORY 14
34 #define ERROR_NO_MORE_FILES 18
35 #define ERROR_SHARING_VIOLATION 32
36 #define ERROR_LOCK_VIOLATION 33
37 #define ERROR_DUP_NAME 52
38 #define ERROR_FILE_EXISTS 80
39 #define ERROR_CANNOT_MAKE 82
40 #define ERROR_INVALID_PARAMETER 87
41 #define ERROR_BROKEN_PIPE 109
42 #define ERROR_DISK_FULL 112
43 #define ERROR_CALL_NOT_IMPLEMENTED 120
44 #define ERROR_INSUFFICIENT_BUFFER 122
45 #define ERROR_SEEK_ON_DEVICE 132
46 #define ERROR_DIR_NOT_EMPTY 145
47 #define ERROR_BUSY 170
48 #define ERROR_ALREADY_EXISTS 183
49 #define ERROR_FILENAME_EXCED_RANGE 206
50 #define ERROR_MORE_DATA 234
51 #define ERROR_NO_MORE_ITEMS 259
52 #define ERROR_NOT_OWNER 288
53 #define ERROR_TOO_MANY_POSTS 298
54 #define ERROR_INVALID_ADDRESS 487
55 #define ERROR_CAN_NOT_COMPLETE 1003
56 #define ERROR_IO_DEVICE 1117
57 #define ERROR_POSSIBLE_DEADLOCK 1131
58 #define ERROR_BAD_DEVICE 1200
59 #define ERROR_NO_NETWORK 1222
60 #define ERROR_ALREADY_INITIALIZED 1247
61 #define ERROR_COMMITMENT_LIMIT 1455
63 /* HRESULT values for OLE, SHELL and other Interface stuff */
64 #define NOERROR 0
65 #define S_OK 0
66 #define E_FAIL 0x80000008
67 #define E_UNEXPECTED 0x8000FFFF
69 #define OLE_E_ENUM_NOMORE 0x80040002
70 #define CLASS_E_CLASSNOTAVAILABLE 0x80040111
72 #define E_OUTOFMEMORY 0x8007000E
73 #define E_INVALIDARG 0x80070057
75 #define STG_E_INVALIDFUNCTION 0x80030001
76 #define STG_E_FILENOTFOUND 0x80030002
77 #define STG_E_PATHNOTFOUND 0x80030003
78 #define STG_E_TOOMANYOPENFILES 0x80030004
79 #define STG_E_ACCESSDENIED 0x80030005
80 #define STG_E_INVALIDHANDLE 0x80030006
81 #define STG_E_INSUFFICIENTMEMORY 0x80030008
82 #define STG_E_INVALIDPOINTER 0x80030009
83 #define STG_E_NOMOREFILES 0x80030012
84 #define STG_E_DISKISWRITEPROTECTED 0x80030013
85 #define STG_E_SEEKERROR 0x80030019
86 #define STG_E_WRITEFAULT 0x8003001D
87 #define STG_E_READFAULT 0x8003001E
88 #define STG_E_SHAREVIOLATION 0x80030020
89 #define STG_E_LOCKVIOLATION 0x80030021
90 #define STG_E_FILEALREADYEXISTS 0x80030050
91 #define STG_E_INVALIDPARAMETER 0x80030057
92 #define STG_E_MEDIUMFULL 0x80030070
93 #define STG_E_ABNORMALAPIEXIT 0x800300FA
94 #define STG_E_INVALIDHEADER 0x800300FB
95 #define STG_E_INVALIDNAME 0x800300FC
96 #define STG_E_UNKNOWN 0x800300FD
97 #define STG_E_UNIMPLEMENTEDFUNCTION 0x800300FE
98 #define STG_E_INVALIDFLAG 0x800300FF
99 #define STG_E_INUSE 0x80030100
100 #define STG_E_NOTCURRENT 0x80030101
101 #define STG_E_REVERTED 0x80030102
102 #define STG_E_CANTSAVE 0x80030103
103 #define STG_E_OLDFORMAT 0x80030104
104 #define STG_E_OLDDLL 0x80030105
105 #define STG_E_SHAREREQUIRED 0x80030106
106 #define STG_E_NOTFILEBASEDSTORAGE 0x80030107
107 #define STG_E_EXTANTMARSHALLINGS 0x80030108
109 #endif /* __WINE_WINERROR_H */