5 #ifndef __MONO_UTILS_W32API_H__
6 #define __MONO_UTILS_W32API_H__
12 #define WAIT_FAILED ((gint) 0xFFFFFFFF)
13 #define WAIT_OBJECT_0 ((gint) 0x00000000)
14 #define WAIT_ABANDONED_0 ((gint) 0x00000080)
15 #define WAIT_TIMEOUT ((gint) 0x00000102)
16 #define WAIT_IO_COMPLETION ((gint) 0x000000C0)
20 typedef guint32 DWORD
;
21 typedef gboolean BOOL
;
23 typedef guint32 ULONG
;
26 typedef gpointer HANDLE
;
27 typedef gpointer HMODULE
;
31 #define __USE_W32_SOCKETS
35 /* The mingw version says: /usr/i686-pc-mingw32/sys-root/mingw/include/ws2tcpip.h:38:2: error: #error "ws2tcpip.h is not compatible with winsock.h. Include winsock2.h instead." */
41 /* Workaround for missing WSAPOLLFD typedef in mingw's winsock2.h
42 * that is required for mswsock.h below. Remove once
43 * http://sourceforge.net/p/mingw/bugs/1980/ is fixed. */
44 #if defined(__MINGW_MAJOR_VERSION) && __MINGW_MAJOR_VERSION == 4
45 typedef struct pollfd
{
49 } WSAPOLLFD
, *PWSAPOLLFD
, *LPWSAPOLLFD
;
52 #if G_HAVE_API_SUPPORT(HAVE_CLASSIC_WINAPI_SUPPORT | HAVE_UWP_WINAPI_SUPPORT)
56 #endif /* HOST_WIN32 */
58 #endif /* __MONO_UTILS_W32API_H__ */