- We need to invalidate the selection area when we replace the
[mono-project.git] / mono / metadata / process.h
blobcfbbf8a932bd37c311e0a61ee9a6586b1cebd8fb
1 /*
2 * process.h: System.Diagnostics.Process support
4 * Author:
5 * Dick Porter (dick@ximian.com)
7 * (C) 2002 Ximian, Inc.
8 */
10 #ifndef _MONO_METADATA_PROCESS_H_
11 #define _MONO_METADATA_PROCESS_H_
13 #include <config.h>
14 #include <glib.h>
16 #include <mono/metadata/object.h>
17 #include <mono/io-layer/io-layer.h>
18 #include "mono/utils/mono-compiler.h"
20 typedef struct
22 HANDLE process_handle;
23 HANDLE thread_handle;
24 guint32 pid; /* Contains GetLastError () on failure */
25 guint32 tid;
26 MonoArray *env_keys;
27 MonoArray *env_values;
28 } MonoProcInfo;
30 typedef struct
32 MonoObject object;
33 MonoString *arguments;
34 gpointer error_dialog_parent_handle;
35 MonoString *filename;
36 MonoString *verb;
37 MonoString *working_directory;
38 MonoObject *envVars;
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;
45 guint32 window_style;
46 } MonoProcessStartInfo;
48 G_BEGIN_DECLS
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;
67 G_END_DECLS
69 #endif /* _MONO_METADATA_PROCESS_H_ */