bd42451469ffb2bdc511c9262e2b6c0312f4cf81
[mono.git] / mono / metadata / w32error.h
1 /**
2  * \file
3  */
4
5 #ifndef _MONO_METADATA_W32ERROR_H_
6 #define _MONO_METADATA_W32ERROR_H_
7
8 #include <config.h>
9 #include <glib.h>
10
11 #if !defined(HOST_WIN32)
12
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_FILE_EXISTS          80
35 #define ERROR_CANNOT_MAKE          82
36 #define ERROR_INVALID_PARAMETER    87
37 #define ERROR_INVALID_NAME         123
38 #define ERROR_PROC_NOT_FOUND       127
39 #define ERROR_DIR_NOT_EMPTY        145
40 #define ERROR_ALREADY_EXISTS       183
41 #define ERROR_BAD_EXE_FORMAT       193
42 #define ERROR_FILENAME_EXCED_RANGE 206
43 #define ERROR_DIRECTORY            267
44 #define ERROR_IO_PENDING           997
45 #define ERROR_CANT_RESOLVE_FILENAME 1921
46 #define ERROR_ENCRYPTION_FAILED    6000
47 #define WSAEINTR                   10004
48 #define WSAEBADF                   10009
49 #define WSAEACCES                  10013
50 #define WSAEFAULT                  10014
51 #define WSAEINVAL                  10022
52 #define WSAEMFILE                  10024
53 #define WSAEWOULDBLOCK             10035
54 #define WSAEINPROGRESS             10036
55 #define WSAEALREADY                10037
56 #define WSAENOTSOCK                10038
57 #define WSAEDESTADDRREQ            10039
58 #define WSAEMSGSIZE                10040
59 #define WSAEPROTOTYPE              10041
60 #define WSAENOPROTOOPT             10042
61 #define WSAEPROTONOSUPPORT         10043
62 #define WSAESOCKTNOSUPPORT         10044
63 #define WSAEOPNOTSUPP              10045
64 #define WSAEAFNOSUPPORT            10047
65 #define WSAEADDRINUSE              10048
66 #define WSAEADDRNOTAVAIL           10049
67 #define WSAENETDOWN                10050
68 #define WSAENETUNREACH             10051
69 #define WSAECONNRESET              10054
70 #define WSAENOBUFS                 10055
71 #define WSAEISCONN                 10056
72 #define WSAENOTCONN                10057
73 #define WSAESHUTDOWN               10058
74 #define WSAETIMEDOUT               10060
75 #define WSAECONNREFUSED            10061
76 #define WSAEHOSTDOWN               10064
77 #define WSAEHOSTUNREACH            10065
78 #define WSASYSCALLFAILURE          10107
79 #define WSAENXIO                   100001
80
81 #endif
82
83 guint32
84 mono_w32error_get_last (void);
85
86 void
87 mono_w32error_set_last (guint32 error);
88
89 guint32
90 mono_w32error_unix_to_win32 (guint32 error);
91
92 #endif /* _MONO_METADATA_W32ERROR_H_ */