Merge pull request #3583 from xmcclure/test-418-checked
[mono.git] / mono / io-layer / processes.h
index 8e4c0aa558bf78da73681abd60b9710033109243..c4da3eceee1b54378d22bcca0c7675f6624cb081 100644 (file)
 #ifndef _WAPI_PROCESSES_H_
 #define _WAPI_PROCESSES_H_
 
+#include <sys/types.h>
+#ifdef HAVE_UNISTD_H
+#include <unistd.h>
+#endif
 #include <glib.h>
 
-#include <mono/io-layer/handles.h>
 #include <mono/io-layer/access.h>
 #include <mono/io-layer/versioninfo.h>
 
@@ -104,13 +107,13 @@ typedef struct _WapiShellExecuteInfo WapiShellExecuteInfo;
 struct _WapiShellExecuteInfo
 {
        guint32 cbSize;
-       WapiShellExecuteInfoFlags fMask;
+       gulong fMask;
        gpointer hwnd;
        const gunichar2 *lpVerb;
        const gunichar2 *lpFile;
        const gunichar2 *lpParameters;
        const gunichar2 *lpDirectory;
-       WapiShellExecuteShowFlags nShow;
+       gulong nShow;
        gpointer hInstApp;
        gpointer lpIDList;
        const gunichar2 *lpClass;
@@ -127,7 +130,6 @@ struct _WapiShellExecuteInfo
        
 #define DEBUG_PROCESS 0x00000001
 #define DEBUG_ONLY_THIS_PROCESS 0x00000002
-#define CREATE_SUSPENDED 0x00000004
 #define DETACHED_PROCESS 0x00000008
 #define CREATE_NEW_CONSOLE 0x00000010
 #define NORMAL_PRIORITY_CLASS 0x00000020
@@ -188,8 +190,6 @@ extern gboolean CreateProcessWithLogonW (const gunichar2 *username,
 
 extern gpointer GetCurrentProcess (void);
 extern guint32 GetProcessId (gpointer handle);
-extern guint32 GetCurrentProcessId (void);
-extern gboolean EnumProcesses (guint32 *pids, guint32 len, guint32 *needed);
 extern gboolean CloseProcess (gpointer handle);
 extern gpointer OpenProcess (guint32 access, gboolean inherit, guint32 pid);
 extern gboolean GetExitCodeProcess (gpointer process, guint32 *code);