update readme (#21797)
[mono-project.git] / mono / metadata / w32error.h
blob2ca20c8a9ed775350d28ef0af824f944273e63b7
1 /**
2 * \file
3 */
5 #ifndef _MONO_METADATA_W32ERROR_H_
6 #define _MONO_METADATA_W32ERROR_H_
8 #include <config.h>
9 #include <glib.h>
11 #if !defined(HOST_WIN32)
13 #define ERROR_SUCCESS 0
14 #define ERROR_FILE_NOT_FOUND 2
15 #define ERROR_PATH_NOT_FOUND 3
16 #define ERROR_TOO_MANY_OPEN_FILES 4
17 #define ERROR_ACCESS_DENIED 5
18 #define ERROR_INVALID_HANDLE 6
19 #define ERROR_NOT_ENOUGH_MEMORY 8
20 #define ERROR_BAD_FORMAT 11
21 #define ERROR_INVALID_ACCESS 12
22 #define ERROR_INVALID_DATA 13
23 #define ERROR_OUTOFMEMORY 14
24 #define ERROR_NOT_SAME_DEVICE 17
25 #define ERROR_NO_MORE_FILES 18
26 #define ERROR_BAD_LENGTH 24
27 #define ERROR_SEEK 25
28 #define ERROR_WRITE_FAULT 29
29 #define ERROR_GEN_FAILURE 31
30 #define ERROR_SHARING_VIOLATION 32
31 #define ERROR_LOCK_VIOLATION 33
32 #define ERROR_HANDLE_DISK_FULL 39
33 #define ERROR_NOT_SUPPORTED 50
34 #define ERROR_DEV_NOT_EXIST 55
35 #define ERROR_FILE_EXISTS 80
36 #define ERROR_CANNOT_MAKE 82
37 #define ERROR_INVALID_PARAMETER 87
38 #define ERROR_INVALID_NAME 123
39 #define ERROR_PROC_NOT_FOUND 127
40 #define ERROR_DIR_NOT_EMPTY 145
41 #define ERROR_ALREADY_EXISTS 183
42 #define ERROR_BAD_EXE_FORMAT 193
43 #define ERROR_FILENAME_EXCED_RANGE 206
44 #define ERROR_DIRECTORY 267
45 #define ERROR_IO_PENDING 997
46 #define ERROR_CANT_RESOLVE_FILENAME 1921
47 #define ERROR_ENCRYPTION_FAILED 6000
48 #define WSA_INVALID_PARAMETER ERROR_INVALID_PARAMETER
49 #define WSA_INVALID_HANDLE ERROR_INVALID_HANDLE
50 #define WSAEINTR 10004
51 #define WSAEBADF 10009
52 #define WSAEACCES 10013
53 #define WSAEFAULT 10014
54 #define WSAEINVAL 10022
55 #define WSAEMFILE 10024
56 #define WSAEWOULDBLOCK 10035
57 #define WSAEINPROGRESS 10036
58 #define WSAEALREADY 10037
59 #define WSAENOTSOCK 10038
60 #define WSAEDESTADDRREQ 10039
61 #define WSAEMSGSIZE 10040
62 #define WSAEPROTOTYPE 10041
63 #define WSAENOPROTOOPT 10042
64 #define WSAEPROTONOSUPPORT 10043
65 #define WSAESOCKTNOSUPPORT 10044
66 #define WSAEOPNOTSUPP 10045
67 #define WSAEAFNOSUPPORT 10047
68 #define WSAEADDRINUSE 10048
69 #define WSAEADDRNOTAVAIL 10049
70 #define WSAENETDOWN 10050
71 #define WSAENETUNREACH 10051
72 #define WSAECONNRESET 10054
73 #define WSAENOBUFS 10055
74 #define WSAEISCONN 10056
75 #define WSAENOTCONN 10057
76 #define WSAESHUTDOWN 10058
77 #define WSAETIMEDOUT 10060
78 #define WSAECONNREFUSED 10061
79 #define WSAELOOP 10062
80 #define WSAENAMETOOLONG 10063
81 #define WSAEHOSTDOWN 10064
82 #define WSAEHOSTUNREACH 10065
83 #define WSASYSCALLFAILURE 10107
84 #define WSAENXIO 100001
86 #endif
88 guint32
89 mono_w32error_get_last (void);
91 void
92 mono_w32error_set_last (guint32 error);
94 guint32
95 mono_w32error_unix_to_win32 (guint32 error);
97 #endif /* _MONO_METADATA_W32ERROR_H_ */