[io-layer] Extract file (#4255)
[mono.git] / mono / io-layer / wapi.h
1 /*
2  * wapi.h:  Public include files
3  *
4  * Author:
5  *      Dick Porter (dick@ximian.com)
6  *
7  * (C) 2002 Ximian, Inc.
8  */
9
10 #ifndef _WAPI_WAPI_H_
11 #define _WAPI_WAPI_H_
12
13 #include <config.h>
14 #include <glib.h>
15
16 #ifdef HAVE_DIRENT_H
17 #include <dirent.h>
18 #endif
19 #include <unistd.h>
20 #include <utime.h>
21 #include <sys/types.h>
22 #include <sys/stat.h>
23
24 #include <mono/io-layer/wapi-remap.h>
25 #include <mono/io-layer/error.h>
26 #include <mono/utils/mono-logger-internals.h>
27
28 G_BEGIN_DECLS
29
30 #define WAIT_FAILED        ((gint) 0xFFFFFFFF)
31 #define WAIT_OBJECT_0      ((gint) 0x00000000)
32 #define WAIT_ABANDONED_0   ((gint) 0x00000080)
33 #define WAIT_TIMEOUT       ((gint) 0x00000102)
34 #define WAIT_IO_COMPLETION ((gint) 0x000000C0)
35
36 #ifdef DISABLE_IO_LAYER_TRACE
37 #define MONO_TRACE(...)
38 #else
39 #define MONO_TRACE(...) mono_trace (__VA_ARGS__)
40 #endif
41
42 #define WINAPI
43
44 typedef guint32 DWORD;
45 typedef gboolean BOOL;
46 typedef gint32 LONG;
47 typedef guint32 ULONG;
48 typedef guint UINT;
49
50 typedef gpointer HANDLE;
51 typedef gpointer HMODULE;
52
53 gboolean
54 CloseHandle (gpointer handle);
55
56 pid_t
57 wapi_getpid (void);
58
59 G_END_DECLS
60
61 #endif /* _WAPI_WAPI_H_ */