2003-02-21 Zoltan Varga <vargaz@freemail.hu>
[mono.git] / mono / metadata / process.h
1 /*
2  * process.h: System.Diagnostics.Process support
3  *
4  * Author:
5  *      Dick Porter (dick@ximian.com)
6  *
7  * (C) 2002 Ximian, Inc.
8  */
9
10 #ifndef _MONO_METADATA_PROCESS_H_
11 #define _MONO_METADATA_PROCESS_H_
12
13 #include <config.h>
14 #include <glib.h>
15
16 #include <mono/metadata/object.h>
17 #include <mono/io-layer/io-layer.h>
18
19 typedef struct 
20 {
21         HANDLE process_handle;
22         HANDLE thread_handle;
23         guint32 pid;
24         guint32 tid;
25 } MonoProcInfo;
26
27 extern HANDLE ves_icall_System_Diagnostics_Process_GetProcess_internal (guint32 pid);
28 extern MonoArray *ves_icall_System_Diagnostics_Process_GetProcesses_internal (void);
29 extern guint32 ves_icall_System_Diagnostics_Process_GetPid_internal (void);
30 extern void ves_icall_System_Diagnostics_Process_Process_free_internal (MonoObject *this, HANDLE process);
31 extern MonoArray *ves_icall_System_Diagnostics_Process_GetModules_internal (MonoObject *this);
32 extern void ves_icall_System_Diagnostics_FileVersionInfo_GetVersionInfo_internal (MonoObject *this, MonoString *filename);
33 extern MonoBoolean ves_icall_System_Diagnostics_Process_Start_internal (MonoString *cmd, MonoString *dirname, HANDLE stdin_handle, HANDLE stdout_handle, HANDLE stderr_handle, MonoProcInfo *process_handle);
34 extern MonoBoolean ves_icall_System_Diagnostics_Process_WaitForExit_internal (MonoObject *this, HANDLE process, gint32 ms);
35 extern gint64 ves_icall_System_Diagnostics_Process_ExitTime_internal (HANDLE process);
36 extern gint64 ves_icall_System_Diagnostics_Process_StartTime_internal (HANDLE process);
37 extern gint32 ves_icall_System_Diagnostics_Process_ExitCode_internal (HANDLE process);
38 extern MonoString *ves_icall_System_Diagnostics_Process_ProcessName_internal (HANDLE process);
39 extern MonoBoolean ves_icall_System_Diagnostics_Process_GetWorkingSet_internal (HANDLE process, guint32 *min, guint32 *max);
40 extern MonoBoolean ves_icall_System_Diagnostics_Process_SetWorkingSet_internal (HANDLE process, guint32 min, guint32 max, MonoBoolean use_min);
41
42 #endif /* _MONO_METADATA_PROCESS_H_ */