Merge pull request #5714 from alexischr/update_bockbuild
[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_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 WSAEINTR                   10004
49 #define WSAEBADF                   10009
50 #define WSAEACCES                  10013
51 #define WSAEFAULT                  10014
52 #define WSAEINVAL                  10022
53 #define WSAEMFILE                  10024
54 #define WSAEWOULDBLOCK             10035
55 #define WSAEINPROGRESS             10036
56 #define WSAEALREADY                10037
57 #define WSAENOTSOCK                10038
58 #define WSAEDESTADDRREQ            10039
59 #define WSAEMSGSIZE                10040
60 #define WSAEPROTOTYPE              10041
61 #define WSAENOPROTOOPT             10042
62 #define WSAEPROTONOSUPPORT         10043
63 #define WSAESOCKTNOSUPPORT         10044
64 #define WSAEOPNOTSUPP              10045
65 #define WSAEAFNOSUPPORT            10047
66 #define WSAEADDRINUSE              10048
67 #define WSAEADDRNOTAVAIL           10049
68 #define WSAENETDOWN                10050
69 #define WSAENETUNREACH             10051
70 #define WSAECONNRESET              10054
71 #define WSAENOBUFS                 10055
72 #define WSAEISCONN                 10056
73 #define WSAENOTCONN                10057
74 #define WSAESHUTDOWN               10058
75 #define WSAETIMEDOUT               10060
76 #define WSAECONNREFUSED            10061
77 #define WSAEHOSTDOWN               10064
78 #define WSAEHOSTUNREACH            10065
79 #define WSASYSCALLFAILURE          10107
80 #define WSAENXIO                   100001
81
82 #endif
83
84 guint32
85 mono_w32error_get_last (void);
86
87 void
88 mono_w32error_set_last (guint32 error);
89
90 guint32
91 mono_w32error_unix_to_win32 (guint32 error);
92
93 #endif /* _MONO_METADATA_W32ERROR_H_ */