Fix
[mono.git] / mono / io-layer / io.h
index 605e11c56220d4798144230236dcb2906e7834cf..9e07a86d05f09ecb4e3095040f47d497b892ccb8 100644 (file)
@@ -13,6 +13,7 @@
 #include <stdlib.h>
 
 #include "mono/io-layer/wapi.h"
+#include "mono/io-layer/timefuncs.h"
 
 typedef struct _WapiSecurityAttributes WapiSecurityAttributes;
 
@@ -101,12 +102,6 @@ typedef enum {
        GetFileExMaxInfoLevel=0x0001
 } WapiGetFileExInfoLevels;
 
-typedef struct 
-{
-       guint32 dwLowDateTime;
-       guint32 dwHighDateTime;
-} WapiFileTime;
-
 typedef struct 
 {
        guint16 wYear;
@@ -145,6 +140,7 @@ typedef struct
 
 #define INVALID_SET_FILE_POINTER ((guint32)-1)
 #define INVALID_FILE_SIZE ((guint32)0xFFFFFFFF)
+#define INVALID_FILE_ATTRIBUTES ((guint32)-1)
 
 extern gpointer CreateFile(const gunichar2 *name, guint32 fileaccess,
                           guint32 sharemode,
@@ -189,5 +185,7 @@ extern gboolean GetFileAttributesEx (const gunichar2 *name,
 extern gboolean SetFileAttributes (const gunichar2 *name, guint32 attrs);
 extern guint32 GetCurrentDirectory (guint32 length, gunichar2 *buffer);
 extern gboolean SetCurrentDirectory (const gunichar2 *path);
+extern gboolean CreatePipe (gpointer *readpipe, gpointer *writepipe,
+                           WapiSecurityAttributes *security, guint32 size);
 
 #endif /* _WAPI_IO_H_ */