少年修仙传客户端基础资源
hch
2024-04-01 d01413b00ef631ac20347716b23818b0b811f65f
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
/**
 * \file
 * System.Diagnostics.Process support
 *
 * Author:
 *    Dick Porter (dick@ximian.com)
 *
 * (C) 2002 Ximian, Inc.
 */
 
#ifndef _MONO_METADATA_W32PROCESS_H_
#define _MONO_METADATA_W32PROCESS_H_
 
#include <config.h>
#include <glib.h>
 
#if HAVE_SYS_TYPES_H
#include <sys/types.h>
#endif
 
#include <mono/metadata/object.h>
 
G_BEGIN_DECLS
 
typedef enum {
    MONO_W32PROCESS_PRIORITY_CLASS_NORMAL       = 0x0020,
    MONO_W32PROCESS_PRIORITY_CLASS_IDLE         = 0x0040,
    MONO_W32PROCESS_PRIORITY_CLASS_HIGH         = 0x0080,
    MONO_W32PROCESS_PRIORITY_CLASS_REALTIME     = 0x0100,
    MONO_W32PROCESS_PRIORITY_CLASS_BELOW_NORMAL = 0x4000,
    MONO_W32PROCESS_PRIORITY_CLASS_ABOVE_NORMAL = 0x8000,
} MonoW32ProcessPriorityClass;
 
typedef struct 
{
    gpointer process_handle;
    guint32 pid; /* Contains mono_w32error_get_last () on failure */
    MonoArray *env_variables;
    MonoString *username;
    MonoString *domain;
    gpointer password; /* BSTR from SecureString in 2.0 profile */
    MonoBoolean load_user_profile;
} MonoW32ProcessInfo;
 
typedef struct
{
    MonoObject object;
    MonoString *filename;
    MonoString *arguments;
    MonoString *working_directory;
    MonoString *verb;
    guint32 window_style;
    MonoBoolean error_dialog;
    gpointer error_dialog_parent_handle;
    MonoBoolean use_shell_execute;
    MonoString *username;
    MonoString *domain;
    MonoObject *password; /* SecureString in 2.0 profile, dummy in 1.x */
    MonoString *password_in_clear_text;
    MonoBoolean load_user_profile;
    MonoBoolean redirect_standard_input;
    MonoBoolean redirect_standard_output;
    MonoBoolean redirect_standard_error;
    MonoObject *encoding_stdout;
    MonoObject *encoding_stderr;
    MonoBoolean create_no_window;
    MonoObject *weak_parent_process;
    MonoObject *envVars;
} MonoW32ProcessStartInfo;
 
void
mono_w32process_init (void);
 
void
mono_w32process_cleanup (void);
 
void
mono_w32process_signal_finished (void);
 
#ifndef HOST_WIN32
 
void
mono_w32process_set_cli_launcher (gchar *path);
 
gchar*
mono_w32process_get_path (pid_t pid);
 
#endif
 
gpointer
ves_icall_System_Diagnostics_Process_GetProcess_internal (guint32 pid);
 
MonoArray*
ves_icall_System_Diagnostics_Process_GetProcesses_internal (void);
 
MonoArray*
ves_icall_System_Diagnostics_Process_GetModules_internal (MonoObject *this_obj, gpointer process);
 
void
ves_icall_System_Diagnostics_FileVersionInfo_GetVersionInfo_internal (MonoObject *this_obj, MonoString *filename);
 
MonoBoolean
ves_icall_System_Diagnostics_Process_ShellExecuteEx_internal (MonoW32ProcessStartInfo *proc_start_info, MonoW32ProcessInfo *process_handle);
 
MonoBoolean
ves_icall_System_Diagnostics_Process_CreateProcess_internal (MonoW32ProcessStartInfo *proc_start_info, gpointer stdin_handle,
    gpointer stdout_handle, gpointer stderr_handle, MonoW32ProcessInfo *process_handle);
 
MonoString*
ves_icall_System_Diagnostics_Process_ProcessName_internal (gpointer process);
 
gint64
ves_icall_System_Diagnostics_Process_GetProcessData (int pid, gint32 data_type, gint32 *error);
 
gpointer
ves_icall_Microsoft_Win32_NativeMethods_GetCurrentProcess (void);
 
MonoBoolean
ves_icall_Microsoft_Win32_NativeMethods_GetExitCodeProcess (gpointer handle, gint32 *exitcode);
 
MonoBoolean
ves_icall_Microsoft_Win32_NativeMethods_CloseProcess (gpointer handle);
 
MonoBoolean
ves_icall_Microsoft_Win32_NativeMethods_TerminateProcess (gpointer handle, gint32 exitcode);
 
MonoBoolean
ves_icall_Microsoft_Win32_NativeMethods_GetProcessWorkingSetSize (gpointer handle, gsize *min, gsize *max);
MonoBoolean
ves_icall_Microsoft_Win32_NativeMethods_SetProcessWorkingSetSize (gpointer handle, gsize min, gsize max);
 
gint32
ves_icall_Microsoft_Win32_NativeMethods_GetPriorityClass (gpointer handle);
MonoBoolean
ves_icall_Microsoft_Win32_NativeMethods_SetPriorityClass (gpointer handle, gint32 priorityClass);
 
MonoBoolean
ves_icall_Microsoft_Win32_NativeMethods_GetProcessTimes (gpointer handle, gint64 *creationtime, gint64 *exittime, gint64 *kerneltime, gint64 *usertime);
 
G_END_DECLS
 
#endif /* _MONO_METADATA_W32PROCESS_H_ */