2 * process.h: System.Diagnostics.Process support
5 * Dick Porter (dick@ximian.com)
7 * (C) 2002 Ximian, Inc.
10 #ifndef _MONO_METADATA_PROCESS_H_
11 #define _MONO_METADATA_PROCESS_H_
16 #include <mono/metadata/object.h>
17 #include <mono/io-layer/io-layer.h>
18 #include "mono/utils/mono-compiler.h"
22 HANDLE process_handle
;
24 guint32 pid
; /* Contains GetLastError () on failure */
27 MonoArray
*env_values
;
33 MonoString
*arguments
;
34 gpointer error_dialog_parent_handle
;
37 MonoString
*working_directory
;
39 MonoBoolean create_no_window
;
40 MonoBoolean error_dialog
;
41 MonoBoolean redirect_standard_error
;
42 MonoBoolean redirect_standard_input
;
43 MonoBoolean redirect_standard_output
;
44 MonoBoolean use_shell_execute
;
46 } MonoProcessStartInfo
;
50 HANDLE
ves_icall_System_Diagnostics_Process_GetProcess_internal (guint32 pid
) MONO_INTERNAL
;
51 MonoArray
*ves_icall_System_Diagnostics_Process_GetProcesses_internal (void) MONO_INTERNAL
;
52 guint32
ves_icall_System_Diagnostics_Process_GetPid_internal (void) MONO_INTERNAL
;
53 void ves_icall_System_Diagnostics_Process_Process_free_internal (MonoObject
*this, HANDLE process
) MONO_INTERNAL
;
54 MonoArray
*ves_icall_System_Diagnostics_Process_GetModules_internal (MonoObject
*this) MONO_INTERNAL
;
55 void ves_icall_System_Diagnostics_FileVersionInfo_GetVersionInfo_internal (MonoObject
*this, MonoString
*filename
) MONO_INTERNAL
;
56 MonoBoolean
ves_icall_System_Diagnostics_Process_ShellExecuteEx_internal (MonoProcessStartInfo
*proc_start_info
, MonoProcInfo
*process_handle
) MONO_INTERNAL
;
57 MonoBoolean
ves_icall_System_Diagnostics_Process_CreateProcess_internal (MonoProcessStartInfo
*proc_start_info
, HANDLE stdin_handle
, HANDLE stdout_handle
, HANDLE stderr_handle
, MonoProcInfo
*process_handle
) MONO_INTERNAL
;
58 MonoBoolean
ves_icall_System_Diagnostics_Process_WaitForExit_internal (MonoObject
*this, HANDLE process
, gint32 ms
) MONO_INTERNAL
;
59 gint64
ves_icall_System_Diagnostics_Process_ExitTime_internal (HANDLE process
) MONO_INTERNAL
;
60 gint64
ves_icall_System_Diagnostics_Process_StartTime_internal (HANDLE process
) MONO_INTERNAL
;
61 gint32
ves_icall_System_Diagnostics_Process_ExitCode_internal (HANDLE process
) MONO_INTERNAL
;
62 MonoString
*ves_icall_System_Diagnostics_Process_ProcessName_internal (HANDLE process
) MONO_INTERNAL
;
63 MonoBoolean
ves_icall_System_Diagnostics_Process_GetWorkingSet_internal (HANDLE process
, guint32
*min
, guint32
*max
) MONO_INTERNAL
;
64 MonoBoolean
ves_icall_System_Diagnostics_Process_SetWorkingSet_internal (HANDLE process
, guint32 min
, guint32 max
, MonoBoolean use_min
) MONO_INTERNAL
;
65 MonoBoolean
ves_icall_System_Diagnostics_Process_Kill_internal (HANDLE process
, gint32 sig
) MONO_INTERNAL
;
69 #endif /* _MONO_METADATA_PROCESS_H_ */