Flush (work in progress)
[mono.git] / mono / io-layer / handles.h
index ab2a3b88719dca436c27723c03fc9afbf316002d..7089c97d26436c0d47be452239f00f93d3e0f733 100644 (file)
@@ -1,12 +1,25 @@
+/*
+ * handles.h:  Generic operations on handles
+ *
+ * Author:
+ *     Dick Porter (dick@ximian.com)
+ *
+ * (C) 2002 Ximian, Inc.
+ */
+
 #ifndef _WAPI_HANDLES_H_
 #define _WAPI_HANDLES_H_
 
-#define INVALID_HANDLE_VALUE (WapiHandle *)-1
+#define INVALID_HANDLE_VALUE (gpointer)-1
+
+G_BEGIN_DECLS
+
+extern gboolean CloseHandle (gpointer handle);
+extern gboolean DuplicateHandle (gpointer srcprocess, gpointer src, gpointer targetprocess, gpointer *target, guint32 access, gboolean inherit, guint32 options);
 
-typedef struct _WapiHandle WapiHandle;
+/* Another kludge alert! Visible non-w32 API is broken! */
+extern void _wapi_cleanup (void);
 
-extern gboolean CloseHandle(WapiHandle *handle);
-extern guint32 SignalObjectAndWait(WapiHandle *signal_handle, WapiHandle *wait,
-                                  guint32 timeout, gboolean alertable);
+G_END_DECLS
 
 #endif /* _WAPI_HANDLES_H_ */