terraria-cpp2il-methodrecon v1.4.4.9
Terraria mobile dump, with reconstructed method body. Dump with CallAnalysis: https://infinitynichto.github.io/terraria-cpp2il
Loading...
Searching...
No Matches
Process.cs
Go to the documentation of this file.
1using System;
4using System.IO;
11
12namespace System.Diagnostics
13{
14 // Token: 0x020000D6 RID: 214
15 [global::System.ComponentModel.DefaultEvent("Exited")]
16 [MonitoringDescription("Provides access to local and remote processes, enabling starting and stopping of local processes.")]
17 [global::System.ComponentModel.DefaultProperty("StartInfo")]
18 public class Process : global::System.ComponentModel.Component
19 {
20 // Token: 0x060004DC RID: 1244 RVA: 0x00013E50 File Offset: 0x00012050
21 public Process()
22 {
23 if (!true)
24 {
25 }
26 base..ctor();
27 this.machineName = ".";
29 }
30
31 // Token: 0x060004DD RID: 1245 RVA: 0x00013E7C File Offset: 0x0001207C
33 {
34 if (!true)
35 {
36 }
37 base..ctor();
40 this.haveProcessId = true;
42 }
43
44 // Token: 0x170000E1 RID: 225
45 // (get) Token: 0x060004DE RID: 1246 RVA: 0x00013EB4 File Offset: 0x000120B4
46 [global::System.ComponentModel.DesignerSerializationVisibility(global::System.ComponentModel.DesignerSerializationVisibility.Hidden)]
47 [MonitoringDescription("Indicates if the process component is associated with a real process.")]
48 [global::System.ComponentModel.Browsable(false)]
49 private bool Associated
50 {
51 get
52 {
53 return !this.haveProcessId || true;
54 }
55 }
56
57 // Token: 0x170000E2 RID: 226
58 // (get) Token: 0x060004DF RID: 1247 RVA: 0x00013ECC File Offset: 0x000120CC
59 [global::System.ComponentModel.Browsable(false)]
60 [MonitoringDescription("Indicates if the associated process has been terminated.")]
61 [global::System.ComponentModel.DesignerSerializationVisibility(global::System.ComponentModel.DesignerSerializationVisibility.Hidden)]
62 public bool HasExited
63 {
64 get
65 {
66 if (this.exited)
67 {
68 }
69 this.EnsureState(Process.State.Associated);
70 long num = 0L;
72 this.exited = true;
74 this.exitCode = 1;
75 this.exited = true;
76 return exitCodeProcess;
77 }
78 }
79
80 // Token: 0x170000E3 RID: 227
81 // (get) Token: 0x060004E0 RID: 1248 RVA: 0x00013FD8 File Offset: 0x000121D8
82 [global::System.ComponentModel.Browsable(false)]
83 [global::System.ComponentModel.DesignerSerializationVisibility(global::System.ComponentModel.DesignerSerializationVisibility.Hidden)]
84 [MonitoringDescription("Returns the native handle for this process. The handle is only available if the process was started using this component.")]
86 {
87 get
88 {
89 this.EnsureState(Process.State.Associated);
91 return this.OpenProcessHandle(processAccess).handle;
92 }
93 }
94
95 // Token: 0x170000E4 RID: 228
96 // (get) Token: 0x060004E1 RID: 1249 RVA: 0x00014000 File Offset: 0x00012200
97 [global::System.ComponentModel.DesignerSerializationVisibility(global::System.ComponentModel.DesignerSerializationVisibility.Hidden)]
98 [MonitoringDescription("The unique identifier for the process.")]
99 public int Id
100 {
101 get
102 {
103 this.EnsureState(Process.State.HaveId);
104 return this.processId;
105 }
106 }
107
108 // Token: 0x170000E5 RID: 229
109 // (set) Token: 0x060004E2 RID: 1250 RVA: 0x0001401C File Offset: 0x0001221C
110 [MonitoringDescription("The priority that the threads in the process run relative to.")]
111 [global::System.ComponentModel.DesignerSerializationVisibility(global::System.ComponentModel.DesignerSerializationVisibility.Hidden)]
113 {
114 set
115 {
116 if (!true)
117 {
118 }
120 long num = 0L;
123 if (processHandle != null)
124 {
125 if (this.haveProcessHandle)
126 {
128 }
129 processHandle.Close();
130 }
131 if (num == 0L)
132 {
133 return;
134 }
135 throw new OutOfMemoryException();
136 }
137 }
138
139 // Token: 0x170000E6 RID: 230
140 // (get) Token: 0x060004E3 RID: 1251 RVA: 0x00014090 File Offset: 0x00012290
141 // (set) Token: 0x060004E4 RID: 1252 RVA: 0x000140A4 File Offset: 0x000122A4
142 [MonitoringDescription("Specifies information used to start a process.")]
143 [global::System.ComponentModel.Browsable(false)]
144 [global::System.ComponentModel.DesignerSerializationVisibility(global::System.ComponentModel.DesignerSerializationVisibility.Content)]
146 {
147 get
148 {
149 /*
150An exception occurred when decompiling this method (060004E3)
151
152ICSharpCode.Decompiler.DecompilerException: Error decompiling System.Diagnostics.ProcessStartInfo System.Diagnostics.Process::get_StartInfo()
153
154 ---> System.Exception: Basic block has to end with unconditional control flow.
155{
156 IL_0000:
157 brtrue(IL_0000, ldfld:ProcessStartInfo[exp:bool](Process::startInfo, ldloc:Process(this)))
158}
159
160 at ICSharpCode.Decompiler.ILAst.ILAstOptimizer.FlattenBasicBlocks(ILNode node) in D:\a\dnSpy\dnSpy\Extensions\ILSpy.Decompiler\ICSharpCode.Decompiler\ICSharpCode.Decompiler\ILAst\ILAstOptimizer.cs:line 1852
161 at ICSharpCode.Decompiler.ILAst.ILAstOptimizer.FlattenBasicBlocks(ILNode node) in D:\a\dnSpy\dnSpy\Extensions\ILSpy.Decompiler\ICSharpCode.Decompiler\ICSharpCode.Decompiler\ILAst\ILAstOptimizer.cs:line 1878
162 at ICSharpCode.Decompiler.ILAst.ILAstOptimizer.FlattenBasicBlocks(ILNode node) in D:\a\dnSpy\dnSpy\Extensions\ILSpy.Decompiler\ICSharpCode.Decompiler\ICSharpCode.Decompiler\ILAst\ILAstOptimizer.cs:line 1878
163 at ICSharpCode.Decompiler.ILAst.ILAstOptimizer.FlattenBasicBlocks(ILNode node) in D:\a\dnSpy\dnSpy\Extensions\ILSpy.Decompiler\ICSharpCode.Decompiler\ICSharpCode.Decompiler\ILAst\ILAstOptimizer.cs:line 1846
164 at ICSharpCode.Decompiler.ILAst.ILAstOptimizer.Optimize(DecompilerContext context, ILBlock method, AutoPropertyProvider autoPropertyProvider, StateMachineKind& stateMachineKind, MethodDef& inlinedMethod, AsyncMethodDebugInfo& asyncInfo, ILAstOptimizationStep abortBeforeStep) in D:\a\dnSpy\dnSpy\Extensions\ILSpy.Decompiler\ICSharpCode.Decompiler\ICSharpCode.Decompiler\ILAst\ILAstOptimizer.cs:line 355
165 at ICSharpCode.Decompiler.Ast.AstMethodBodyBuilder.CreateMethodBody(IEnumerable`1 parameters, MethodDebugInfoBuilder& builder) in D:\a\dnSpy\dnSpy\Extensions\ILSpy.Decompiler\ICSharpCode.Decompiler\ICSharpCode.Decompiler\Ast\AstMethodBodyBuilder.cs:line 123
166 at ICSharpCode.Decompiler.Ast.AstMethodBodyBuilder.CreateMethodBody(MethodDef methodDef, DecompilerContext context, AutoPropertyProvider autoPropertyProvider, IEnumerable`1 parameters, Boolean valueParameterIsKeyword, StringBuilder sb, MethodDebugInfoBuilder& stmtsBuilder) in D:\a\dnSpy\dnSpy\Extensions\ILSpy.Decompiler\ICSharpCode.Decompiler\ICSharpCode.Decompiler\Ast\AstMethodBodyBuilder.cs:line 88
167 --- End of inner exception stack trace ---
168 at ICSharpCode.Decompiler.Ast.AstMethodBodyBuilder.CreateMethodBody(MethodDef methodDef, DecompilerContext context, AutoPropertyProvider autoPropertyProvider, IEnumerable`1 parameters, Boolean valueParameterIsKeyword, StringBuilder sb, MethodDebugInfoBuilder& stmtsBuilder) in D:\a\dnSpy\dnSpy\Extensions\ILSpy.Decompiler\ICSharpCode.Decompiler\ICSharpCode.Decompiler\Ast\AstMethodBodyBuilder.cs:line 92
169 at ICSharpCode.Decompiler.Ast.AstBuilder.AddMethodBody(EntityDeclaration methodNode, EntityDeclaration& updatedNode, MethodDef method, IEnumerable`1 parameters, Boolean valueParameterIsKeyword, MethodKind methodKind) in D:\a\dnSpy\dnSpy\Extensions\ILSpy.Decompiler\ICSharpCode.Decompiler\ICSharpCode.Decompiler\Ast\AstBuilder.cs:line 1683
170*/;
171 }
172 set
173 {
174 while (value == null)
175 {
176 }
178 }
179 }
180
181 // Token: 0x170000E7 RID: 231
182 // (get) Token: 0x060004E5 RID: 1253 RVA: 0x000140BC File Offset: 0x000122BC
183 [global::System.ComponentModel.DefaultValue(null)]
184 [MonitoringDescription("The object used to marshal the event handler calls issued as a result of a Process exit.")]
185 [global::System.ComponentModel.Browsable(false)]
186 public global::System.ComponentModel.ISynchronizeInvoke SynchronizingObject
187 {
188 get
189 {
190 if (this.synchronizingObject == null)
191 {
192 bool designMode = base.DesignMode;
193 if (this != null)
194 {
195 if (this == null)
196 {
197 throw new InvalidCastException();
198 }
199 if (this != null && this != null)
200 {
201 if (this != null)
202 {
204 if (this != null)
205 {
206 goto IL_0028;
207 }
208 }
209 throw new InvalidCastException();
210 }
211 }
212 }
213 IL_0028:
214 return this.synchronizingObject;
215 }
216 }
217
218 // Token: 0x170000E8 RID: 232
219 // (get) Token: 0x060004E6 RID: 1254 RVA: 0x00014104 File Offset: 0x00012304
220 [global::System.ComponentModel.Browsable(false)]
221 [MonitoringDescription("Standard input stream of the process.")]
222 [global::System.ComponentModel.DesignerSerializationVisibility(global::System.ComponentModel.DesignerSerializationVisibility.Hidden)]
224 {
225 get
226 {
227 /*
228An exception occurred when decompiling this method (060004E6)
229
230ICSharpCode.Decompiler.DecompilerException: Error decompiling System.IO.StreamWriter System.Diagnostics.Process::get_StandardInput()
231
232 ---> System.Exception: Basic block has to end with unconditional control flow.
233{
234 IL_0013:
235 stloc:string(var_1_1D, call:string(SR::GetString, ldstr:string("StandardIn has not been redirected.")))
236}
237
238 at ICSharpCode.Decompiler.ILAst.ILAstOptimizer.FlattenBasicBlocks(ILNode node) in D:\a\dnSpy\dnSpy\Extensions\ILSpy.Decompiler\ICSharpCode.Decompiler\ICSharpCode.Decompiler\ILAst\ILAstOptimizer.cs:line 1852
239 at ICSharpCode.Decompiler.ILAst.ILAstOptimizer.FlattenBasicBlocks(ILNode node) in D:\a\dnSpy\dnSpy\Extensions\ILSpy.Decompiler\ICSharpCode.Decompiler\ICSharpCode.Decompiler\ILAst\ILAstOptimizer.cs:line 1878
240 at ICSharpCode.Decompiler.ILAst.ILAstOptimizer.FlattenBasicBlocks(ILNode node) in D:\a\dnSpy\dnSpy\Extensions\ILSpy.Decompiler\ICSharpCode.Decompiler\ICSharpCode.Decompiler\ILAst\ILAstOptimizer.cs:line 1878
241 at ICSharpCode.Decompiler.ILAst.ILAstOptimizer.FlattenBasicBlocks(ILNode node) in D:\a\dnSpy\dnSpy\Extensions\ILSpy.Decompiler\ICSharpCode.Decompiler\ICSharpCode.Decompiler\ILAst\ILAstOptimizer.cs:line 1846
242 at ICSharpCode.Decompiler.ILAst.ILAstOptimizer.Optimize(DecompilerContext context, ILBlock method, AutoPropertyProvider autoPropertyProvider, StateMachineKind& stateMachineKind, MethodDef& inlinedMethod, AsyncMethodDebugInfo& asyncInfo, ILAstOptimizationStep abortBeforeStep) in D:\a\dnSpy\dnSpy\Extensions\ILSpy.Decompiler\ICSharpCode.Decompiler\ICSharpCode.Decompiler\ILAst\ILAstOptimizer.cs:line 355
243 at ICSharpCode.Decompiler.Ast.AstMethodBodyBuilder.CreateMethodBody(IEnumerable`1 parameters, MethodDebugInfoBuilder& builder) in D:\a\dnSpy\dnSpy\Extensions\ILSpy.Decompiler\ICSharpCode.Decompiler\ICSharpCode.Decompiler\Ast\AstMethodBodyBuilder.cs:line 123
244 at ICSharpCode.Decompiler.Ast.AstMethodBodyBuilder.CreateMethodBody(MethodDef methodDef, DecompilerContext context, AutoPropertyProvider autoPropertyProvider, IEnumerable`1 parameters, Boolean valueParameterIsKeyword, StringBuilder sb, MethodDebugInfoBuilder& stmtsBuilder) in D:\a\dnSpy\dnSpy\Extensions\ILSpy.Decompiler\ICSharpCode.Decompiler\ICSharpCode.Decompiler\Ast\AstMethodBodyBuilder.cs:line 88
245 --- End of inner exception stack trace ---
246 at ICSharpCode.Decompiler.Ast.AstMethodBodyBuilder.CreateMethodBody(MethodDef methodDef, DecompilerContext context, AutoPropertyProvider autoPropertyProvider, IEnumerable`1 parameters, Boolean valueParameterIsKeyword, StringBuilder sb, MethodDebugInfoBuilder& stmtsBuilder) in D:\a\dnSpy\dnSpy\Extensions\ILSpy.Decompiler\ICSharpCode.Decompiler\ICSharpCode.Decompiler\Ast\AstMethodBodyBuilder.cs:line 92
247 at ICSharpCode.Decompiler.Ast.AstBuilder.AddMethodBody(EntityDeclaration methodNode, EntityDeclaration& updatedNode, MethodDef method, IEnumerable`1 parameters, Boolean valueParameterIsKeyword, MethodKind methodKind) in D:\a\dnSpy\dnSpy\Extensions\ILSpy.Decompiler\ICSharpCode.Decompiler\ICSharpCode.Decompiler\Ast\AstBuilder.cs:line 1683
248*/;
249 }
250 }
251
252 // Token: 0x170000E9 RID: 233
253 // (get) Token: 0x060004E7 RID: 1255 RVA: 0x00014130 File Offset: 0x00012330
254 [global::System.ComponentModel.Browsable(false)]
255 [global::System.ComponentModel.DesignerSerializationVisibility(global::System.ComponentModel.DesignerSerializationVisibility.Hidden)]
256 [MonitoringDescription("Standard output stream of the process.")]
258 {
259 get
260 {
261 /*
262An exception occurred when decompiling this method (060004E7)
263
264ICSharpCode.Decompiler.DecompilerException: Error decompiling System.IO.StreamReader System.Diagnostics.Process::get_StandardOutput()
265
266 ---> System.Exception: Basic block has to end with unconditional control flow.
267{
268 IL_0021:
269 stloc:string(var_1_2B, call:string(SR::GetString, ldstr:string("Cannot mix synchronous and asynchronous operation on process stream.")))
270}
271
272 at ICSharpCode.Decompiler.ILAst.ILAstOptimizer.FlattenBasicBlocks(ILNode node) in D:\a\dnSpy\dnSpy\Extensions\ILSpy.Decompiler\ICSharpCode.Decompiler\ICSharpCode.Decompiler\ILAst\ILAstOptimizer.cs:line 1852
273 at ICSharpCode.Decompiler.ILAst.ILAstOptimizer.FlattenBasicBlocks(ILNode node) in D:\a\dnSpy\dnSpy\Extensions\ILSpy.Decompiler\ICSharpCode.Decompiler\ICSharpCode.Decompiler\ILAst\ILAstOptimizer.cs:line 1878
274 at ICSharpCode.Decompiler.ILAst.ILAstOptimizer.FlattenBasicBlocks(ILNode node) in D:\a\dnSpy\dnSpy\Extensions\ILSpy.Decompiler\ICSharpCode.Decompiler\ICSharpCode.Decompiler\ILAst\ILAstOptimizer.cs:line 1878
275 at ICSharpCode.Decompiler.ILAst.ILAstOptimizer.FlattenBasicBlocks(ILNode node) in D:\a\dnSpy\dnSpy\Extensions\ILSpy.Decompiler\ICSharpCode.Decompiler\ICSharpCode.Decompiler\ILAst\ILAstOptimizer.cs:line 1846
276 at ICSharpCode.Decompiler.ILAst.ILAstOptimizer.FlattenBasicBlocks(ILNode node) in D:\a\dnSpy\dnSpy\Extensions\ILSpy.Decompiler\ICSharpCode.Decompiler\ICSharpCode.Decompiler\ILAst\ILAstOptimizer.cs:line 1878
277 at ICSharpCode.Decompiler.ILAst.ILAstOptimizer.FlattenBasicBlocks(ILNode node) in D:\a\dnSpy\dnSpy\Extensions\ILSpy.Decompiler\ICSharpCode.Decompiler\ICSharpCode.Decompiler\ILAst\ILAstOptimizer.cs:line 1878
278 at ICSharpCode.Decompiler.ILAst.ILAstOptimizer.FlattenBasicBlocks(ILNode node) in D:\a\dnSpy\dnSpy\Extensions\ILSpy.Decompiler\ICSharpCode.Decompiler\ICSharpCode.Decompiler\ILAst\ILAstOptimizer.cs:line 1846
279 at ICSharpCode.Decompiler.ILAst.ILAstOptimizer.Optimize(DecompilerContext context, ILBlock method, AutoPropertyProvider autoPropertyProvider, StateMachineKind& stateMachineKind, MethodDef& inlinedMethod, AsyncMethodDebugInfo& asyncInfo, ILAstOptimizationStep abortBeforeStep) in D:\a\dnSpy\dnSpy\Extensions\ILSpy.Decompiler\ICSharpCode.Decompiler\ICSharpCode.Decompiler\ILAst\ILAstOptimizer.cs:line 355
280 at ICSharpCode.Decompiler.Ast.AstMethodBodyBuilder.CreateMethodBody(IEnumerable`1 parameters, MethodDebugInfoBuilder& builder) in D:\a\dnSpy\dnSpy\Extensions\ILSpy.Decompiler\ICSharpCode.Decompiler\ICSharpCode.Decompiler\Ast\AstMethodBodyBuilder.cs:line 123
281 at ICSharpCode.Decompiler.Ast.AstMethodBodyBuilder.CreateMethodBody(MethodDef methodDef, DecompilerContext context, AutoPropertyProvider autoPropertyProvider, IEnumerable`1 parameters, Boolean valueParameterIsKeyword, StringBuilder sb, MethodDebugInfoBuilder& stmtsBuilder) in D:\a\dnSpy\dnSpy\Extensions\ILSpy.Decompiler\ICSharpCode.Decompiler\ICSharpCode.Decompiler\Ast\AstMethodBodyBuilder.cs:line 88
282 --- End of inner exception stack trace ---
283 at ICSharpCode.Decompiler.Ast.AstMethodBodyBuilder.CreateMethodBody(MethodDef methodDef, DecompilerContext context, AutoPropertyProvider autoPropertyProvider, IEnumerable`1 parameters, Boolean valueParameterIsKeyword, StringBuilder sb, MethodDebugInfoBuilder& stmtsBuilder) in D:\a\dnSpy\dnSpy\Extensions\ILSpy.Decompiler\ICSharpCode.Decompiler\ICSharpCode.Decompiler\Ast\AstMethodBodyBuilder.cs:line 92
284 at ICSharpCode.Decompiler.Ast.AstBuilder.AddMethodBody(EntityDeclaration methodNode, EntityDeclaration& updatedNode, MethodDef method, IEnumerable`1 parameters, Boolean valueParameterIsKeyword, MethodKind methodKind) in D:\a\dnSpy\dnSpy\Extensions\ILSpy.Decompiler\ICSharpCode.Decompiler\ICSharpCode.Decompiler\Ast\AstBuilder.cs:line 1683
285*/;
286 }
287 }
288
289 // Token: 0x060004E8 RID: 1256 RVA: 0x00014168 File Offset: 0x00012368
291 {
292 if (handle != null)
293 {
294 if (this.haveProcessHandle)
295 {
297 }
298 handle.Close();
299 return;
300 }
301 }
302
303 // Token: 0x060004E9 RID: 1257 RVA: 0x00014190 File Offset: 0x00012390
304 private void CompletionCallback(object context, bool wasSignaled)
305 {
306 this.StopWatchingForExit();
307 this.RaiseOnExited();
308 }
309
310 // Token: 0x060004EA RID: 1258 RVA: 0x000141AC File Offset: 0x000123AC
311 protected override void Dispose(bool disposing)
312 {
313 if (this.disposed)
314 {
315 return;
316 }
317 this.Close();
318 this.disposed = true;
319 base.Dispose(disposing);
320 }
321
322 // Token: 0x060004EB RID: 1259 RVA: 0x000141D8 File Offset: 0x000123D8
323 public void Close()
324 {
325 bool flag = this.haveProcessId;
326 bool flag2 = this.haveProcessHandle;
327 if (flag)
328 {
329 if (!flag2)
330 {
331 return;
332 }
333 }
334 else if (!flag2)
335 {
336 return;
337 }
338 this.StopWatchingForExit();
339 this.m_processHandle.Close();
340 StreamWriter streamWriter = this.standardInput;
341 this.machineName = ".";
342 if (streamWriter == null || this.inputStreamReadMode == Process.StreamReadMode.undefined)
343 {
344 }
345 if (this.standardOutput == null || this.outputStreamReadMode == Process.StreamReadMode.undefined)
346 {
347 }
348 if (this.standardError == null || this.errorStreamReadMode == Process.StreamReadMode.undefined)
349 {
350 }
352 if (asyncStreamReader != null)
353 {
356 }
358 if (asyncStreamReader2 != null)
359 {
362 }
363 }
364
365 // Token: 0x060004EC RID: 1260 RVA: 0x00014284 File Offset: 0x00012484
367 {
368 /*
369An exception occurred when decompiling this method (060004EC)
370
371ICSharpCode.Decompiler.DecompilerException: Error decompiling System.Void System.Diagnostics.Process::EnsureState(System.Diagnostics.Process/State)
372
373 ---> System.Exception: Basic block has to end with unconditional control flow.
374{
375 IL_0048:
376 stloc:string(var_2_52, call:string(SR::GetString, ldstr:string("No process is associated with this object.")))
377}
378
379 at ICSharpCode.Decompiler.ILAst.ILAstOptimizer.FlattenBasicBlocks(ILNode node) in D:\a\dnSpy\dnSpy\Extensions\ILSpy.Decompiler\ICSharpCode.Decompiler\ICSharpCode.Decompiler\ILAst\ILAstOptimizer.cs:line 1852
380 at ICSharpCode.Decompiler.ILAst.ILAstOptimizer.FlattenBasicBlocks(ILNode node) in D:\a\dnSpy\dnSpy\Extensions\ILSpy.Decompiler\ICSharpCode.Decompiler\ICSharpCode.Decompiler\ILAst\ILAstOptimizer.cs:line 1878
381 at ICSharpCode.Decompiler.ILAst.ILAstOptimizer.FlattenBasicBlocks(ILNode node) in D:\a\dnSpy\dnSpy\Extensions\ILSpy.Decompiler\ICSharpCode.Decompiler\ICSharpCode.Decompiler\ILAst\ILAstOptimizer.cs:line 1878
382 at ICSharpCode.Decompiler.ILAst.ILAstOptimizer.FlattenBasicBlocks(ILNode node) in D:\a\dnSpy\dnSpy\Extensions\ILSpy.Decompiler\ICSharpCode.Decompiler\ICSharpCode.Decompiler\ILAst\ILAstOptimizer.cs:line 1846
383 at ICSharpCode.Decompiler.ILAst.ILAstOptimizer.Optimize(DecompilerContext context, ILBlock method, AutoPropertyProvider autoPropertyProvider, StateMachineKind& stateMachineKind, MethodDef& inlinedMethod, AsyncMethodDebugInfo& asyncInfo, ILAstOptimizationStep abortBeforeStep) in D:\a\dnSpy\dnSpy\Extensions\ILSpy.Decompiler\ICSharpCode.Decompiler\ICSharpCode.Decompiler\ILAst\ILAstOptimizer.cs:line 355
384 at ICSharpCode.Decompiler.Ast.AstMethodBodyBuilder.CreateMethodBody(IEnumerable`1 parameters, MethodDebugInfoBuilder& builder) in D:\a\dnSpy\dnSpy\Extensions\ILSpy.Decompiler\ICSharpCode.Decompiler\ICSharpCode.Decompiler\Ast\AstMethodBodyBuilder.cs:line 123
385 at ICSharpCode.Decompiler.Ast.AstMethodBodyBuilder.CreateMethodBody(MethodDef methodDef, DecompilerContext context, AutoPropertyProvider autoPropertyProvider, IEnumerable`1 parameters, Boolean valueParameterIsKeyword, StringBuilder sb, MethodDebugInfoBuilder& stmtsBuilder) in D:\a\dnSpy\dnSpy\Extensions\ILSpy.Decompiler\ICSharpCode.Decompiler\ICSharpCode.Decompiler\Ast\AstMethodBodyBuilder.cs:line 88
386 --- End of inner exception stack trace ---
387 at ICSharpCode.Decompiler.Ast.AstMethodBodyBuilder.CreateMethodBody(MethodDef methodDef, DecompilerContext context, AutoPropertyProvider autoPropertyProvider, IEnumerable`1 parameters, Boolean valueParameterIsKeyword, StringBuilder sb, MethodDebugInfoBuilder& stmtsBuilder) in D:\a\dnSpy\dnSpy\Extensions\ILSpy.Decompiler\ICSharpCode.Decompiler\ICSharpCode.Decompiler\Ast\AstMethodBodyBuilder.cs:line 92
388 at ICSharpCode.Decompiler.Ast.AstBuilder.AddMethodBody(EntityDeclaration methodNode, EntityDeclaration& updatedNode, MethodDef method, IEnumerable`1 parameters, Boolean valueParameterIsKeyword, MethodKind methodKind) in D:\a\dnSpy\dnSpy\Extensions\ILSpy.Decompiler\ICSharpCode.Decompiler\ICSharpCode.Decompiler\Ast\AstBuilder.cs:line 1683
389*/;
390 }
391
392 // Token: 0x060004ED RID: 1261 RVA: 0x000142E4 File Offset: 0x000124E4
394 {
395 if (!this.watchingForExit)
396 {
397 if (this.watchingForExit)
398 {
399 return;
400 }
401 int num = 1;
402 this.watchingForExit = num != 0;
404 long num2 = 0L;
407 Monitor.Exit(this);
408 if (num2 != 0L)
409 {
410 throw new OutOfMemoryException();
411 }
412 }
413 }
414
415 // Token: 0x060004EE RID: 1262 RVA: 0x00014358 File Offset: 0x00012558
417 {
418 /*
419An exception occurred when decompiling this method (060004EE)
420
421ICSharpCode.Decompiler.DecompilerException: Error decompiling System.Diagnostics.Process System.Diagnostics.Process::GetCurrentProcess()
422
423 ---> System.Exception: Basic block has to end with unconditional control flow.
424{
425 Block_0:
426 stloc:int32(var_1_07, call:int32(NativeMethods::GetCurrentProcessId))
427}
428
429 at ICSharpCode.Decompiler.ILAst.ILAstOptimizer.FlattenBasicBlocks(ILNode node) in D:\a\dnSpy\dnSpy\Extensions\ILSpy.Decompiler\ICSharpCode.Decompiler\ICSharpCode.Decompiler\ILAst\ILAstOptimizer.cs:line 1852
430 at ICSharpCode.Decompiler.ILAst.ILAstOptimizer.Optimize(DecompilerContext context, ILBlock method, AutoPropertyProvider autoPropertyProvider, StateMachineKind& stateMachineKind, MethodDef& inlinedMethod, AsyncMethodDebugInfo& asyncInfo, ILAstOptimizationStep abortBeforeStep) in D:\a\dnSpy\dnSpy\Extensions\ILSpy.Decompiler\ICSharpCode.Decompiler\ICSharpCode.Decompiler\ILAst\ILAstOptimizer.cs:line 355
431 at ICSharpCode.Decompiler.Ast.AstMethodBodyBuilder.CreateMethodBody(IEnumerable`1 parameters, MethodDebugInfoBuilder& builder) in D:\a\dnSpy\dnSpy\Extensions\ILSpy.Decompiler\ICSharpCode.Decompiler\ICSharpCode.Decompiler\Ast\AstMethodBodyBuilder.cs:line 123
432 at ICSharpCode.Decompiler.Ast.AstMethodBodyBuilder.CreateMethodBody(MethodDef methodDef, DecompilerContext context, AutoPropertyProvider autoPropertyProvider, IEnumerable`1 parameters, Boolean valueParameterIsKeyword, StringBuilder sb, MethodDebugInfoBuilder& stmtsBuilder) in D:\a\dnSpy\dnSpy\Extensions\ILSpy.Decompiler\ICSharpCode.Decompiler\ICSharpCode.Decompiler\Ast\AstMethodBodyBuilder.cs:line 88
433 --- End of inner exception stack trace ---
434 at ICSharpCode.Decompiler.Ast.AstMethodBodyBuilder.CreateMethodBody(MethodDef methodDef, DecompilerContext context, AutoPropertyProvider autoPropertyProvider, IEnumerable`1 parameters, Boolean valueParameterIsKeyword, StringBuilder sb, MethodDebugInfoBuilder& stmtsBuilder) in D:\a\dnSpy\dnSpy\Extensions\ILSpy.Decompiler\ICSharpCode.Decompiler\ICSharpCode.Decompiler\Ast\AstMethodBodyBuilder.cs:line 92
435 at ICSharpCode.Decompiler.Ast.AstBuilder.AddMethodBody(EntityDeclaration methodNode, EntityDeclaration& updatedNode, MethodDef method, IEnumerable`1 parameters, Boolean valueParameterIsKeyword, MethodKind methodKind) in D:\a\dnSpy\dnSpy\Extensions\ILSpy.Decompiler\ICSharpCode.Decompiler\ICSharpCode.Decompiler\Ast\AstBuilder.cs:line 1683
436*/;
437 }
438
439 // Token: 0x060004EF RID: 1263 RVA: 0x0001436C File Offset: 0x0001256C
440 protected void OnExited()
441 {
442 EventHandler eventHandler = this.onExited;
443 if (eventHandler == null)
444 {
445 return;
446 }
447 if (this.SynchronizingObject != null)
448 {
449 global::System.ComponentModel.ISynchronizeInvoke synchronizeInvoke = this.SynchronizingObject;
450 return;
451 }
452 IntPtr invoke_impl = eventHandler.invoke_impl;
453 IntPtr method_code = eventHandler.method_code;
454 IntPtr method = eventHandler.method;
455 }
456
457 // Token: 0x060004F0 RID: 1264 RVA: 0x000143CC File Offset: 0x000125CC
459 {
460 while (!this.haveProcessHandle)
461 {
462 }
464 long num = 0L;
465 int num2 = 3;
466 if (num == 0L && num2 == 0)
467 {
468 if (this.m_processHandle == null)
469 {
470 }
472 }
473 throw new OutOfMemoryException();
474 }
475
476 // Token: 0x060004F1 RID: 1265 RVA: 0x00014460 File Offset: 0x00012660
478 {
479 return this.GetProcessHandle(access, true);
480 }
481
482 // Token: 0x060004F2 RID: 1266 RVA: 0x00014478 File Offset: 0x00012678
484 {
485 /*
486An exception occurred when decompiling this method (060004F2)
487
488ICSharpCode.Decompiler.DecompilerException: Error decompiling Microsoft.Win32.SafeHandles.SafeProcessHandle System.Diagnostics.Process::OpenProcessHandle(System.Int32)
489
490 ---> System.Exception: Basic block has to end with unconditional control flow.
491{
492 IL_003E:
493 stloc:Type(var_2_44, call:Type(object::GetType, ldloc:Process[exp:object](this)))
494}
495
496 at ICSharpCode.Decompiler.ILAst.ILAstOptimizer.FlattenBasicBlocks(ILNode node) in D:\a\dnSpy\dnSpy\Extensions\ILSpy.Decompiler\ICSharpCode.Decompiler\ICSharpCode.Decompiler\ILAst\ILAstOptimizer.cs:line 1852
497 at ICSharpCode.Decompiler.ILAst.ILAstOptimizer.FlattenBasicBlocks(ILNode node) in D:\a\dnSpy\dnSpy\Extensions\ILSpy.Decompiler\ICSharpCode.Decompiler\ICSharpCode.Decompiler\ILAst\ILAstOptimizer.cs:line 1878
498 at ICSharpCode.Decompiler.ILAst.ILAstOptimizer.FlattenBasicBlocks(ILNode node) in D:\a\dnSpy\dnSpy\Extensions\ILSpy.Decompiler\ICSharpCode.Decompiler\ICSharpCode.Decompiler\ILAst\ILAstOptimizer.cs:line 1878
499 at ICSharpCode.Decompiler.ILAst.ILAstOptimizer.FlattenBasicBlocks(ILNode node) in D:\a\dnSpy\dnSpy\Extensions\ILSpy.Decompiler\ICSharpCode.Decompiler\ICSharpCode.Decompiler\ILAst\ILAstOptimizer.cs:line 1846
500 at ICSharpCode.Decompiler.ILAst.ILAstOptimizer.FlattenBasicBlocks(ILNode node) in D:\a\dnSpy\dnSpy\Extensions\ILSpy.Decompiler\ICSharpCode.Decompiler\ICSharpCode.Decompiler\ILAst\ILAstOptimizer.cs:line 1878
501 at ICSharpCode.Decompiler.ILAst.ILAstOptimizer.FlattenBasicBlocks(ILNode node) in D:\a\dnSpy\dnSpy\Extensions\ILSpy.Decompiler\ICSharpCode.Decompiler\ICSharpCode.Decompiler\ILAst\ILAstOptimizer.cs:line 1878
502 at ICSharpCode.Decompiler.ILAst.ILAstOptimizer.FlattenBasicBlocks(ILNode node) in D:\a\dnSpy\dnSpy\Extensions\ILSpy.Decompiler\ICSharpCode.Decompiler\ICSharpCode.Decompiler\ILAst\ILAstOptimizer.cs:line 1846
503 at ICSharpCode.Decompiler.ILAst.ILAstOptimizer.Optimize(DecompilerContext context, ILBlock method, AutoPropertyProvider autoPropertyProvider, StateMachineKind& stateMachineKind, MethodDef& inlinedMethod, AsyncMethodDebugInfo& asyncInfo, ILAstOptimizationStep abortBeforeStep) in D:\a\dnSpy\dnSpy\Extensions\ILSpy.Decompiler\ICSharpCode.Decompiler\ICSharpCode.Decompiler\ILAst\ILAstOptimizer.cs:line 355
504 at ICSharpCode.Decompiler.Ast.AstMethodBodyBuilder.CreateMethodBody(IEnumerable`1 parameters, MethodDebugInfoBuilder& builder) in D:\a\dnSpy\dnSpy\Extensions\ILSpy.Decompiler\ICSharpCode.Decompiler\ICSharpCode.Decompiler\Ast\AstMethodBodyBuilder.cs:line 123
505 at ICSharpCode.Decompiler.Ast.AstMethodBodyBuilder.CreateMethodBody(MethodDef methodDef, DecompilerContext context, AutoPropertyProvider autoPropertyProvider, IEnumerable`1 parameters, Boolean valueParameterIsKeyword, StringBuilder sb, MethodDebugInfoBuilder& stmtsBuilder) in D:\a\dnSpy\dnSpy\Extensions\ILSpy.Decompiler\ICSharpCode.Decompiler\ICSharpCode.Decompiler\Ast\AstMethodBodyBuilder.cs:line 88
506 --- End of inner exception stack trace ---
507 at ICSharpCode.Decompiler.Ast.AstMethodBodyBuilder.CreateMethodBody(MethodDef methodDef, DecompilerContext context, AutoPropertyProvider autoPropertyProvider, IEnumerable`1 parameters, Boolean valueParameterIsKeyword, StringBuilder sb, MethodDebugInfoBuilder& stmtsBuilder) in D:\a\dnSpy\dnSpy\Extensions\ILSpy.Decompiler\ICSharpCode.Decompiler\ICSharpCode.Decompiler\Ast\AstMethodBodyBuilder.cs:line 92
508 at ICSharpCode.Decompiler.Ast.AstBuilder.AddMethodBody(EntityDeclaration methodNode, EntityDeclaration& updatedNode, MethodDef method, IEnumerable`1 parameters, Boolean valueParameterIsKeyword, MethodKind methodKind) in D:\a\dnSpy\dnSpy\Extensions\ILSpy.Decompiler\ICSharpCode.Decompiler\ICSharpCode.Decompiler\Ast\AstBuilder.cs:line 1683
509*/;
510 }
511
512 // Token: 0x060004F3 RID: 1267 RVA: 0x000144CC File Offset: 0x000126CC
513 public void Refresh()
514 {
515 }
516
517 // Token: 0x060004F4 RID: 1268 RVA: 0x000144DC File Offset: 0x000126DC
519 {
520 bool flag = this.watchForExit;
523 if (flag)
524 {
526 return;
527 }
528 }
529
530 // Token: 0x060004F5 RID: 1269 RVA: 0x00014508 File Offset: 0x00012708
531 private void SetProcessId(int processId)
532 {
534 this.haveProcessId = true;
535 }
536
537 // Token: 0x060004F6 RID: 1270 RVA: 0x00014524 File Offset: 0x00012724
538 public bool Start()
539 {
540 this.Close();
542 if (processStartInfo.fileName == null)
543 {
544 }
545 if (processStartInfo.useShellExecute)
546 {
547 return this.StartWithShellExecuteEx(processStartInfo);
548 }
549 bool flag = this.StartWithCreateProcess(processStartInfo);
550 return true;
551 }
552
553 // Token: 0x060004F7 RID: 1271 RVA: 0x0001456C File Offset: 0x0001276C
554 public static Process Start(string fileName)
555 {
557 return process;
558 }
559
560 // Token: 0x060004F8 RID: 1272 RVA: 0x00002050 File Offset: 0x00000250
562 {
563 throw new global::Cpp2IlInjected.AnalysisFailedException("CPP2IL failed to recover any usable IL for this method.");
564 }
565
566 // Token: 0x060004F9 RID: 1273 RVA: 0x0001457C File Offset: 0x0001277C
567 private void StopWatchingForExit()
568 {
569 if (this.watchingForExit)
570 {
571 if (this.watchingForExit)
572 {
575 return;
576 }
577 long num = 0L;
578 Monitor.Exit(this);
579 if (num != 0L)
580 {
581 throw new OutOfMemoryException();
582 }
583 }
584 }
585
586 // Token: 0x060004FA RID: 1274 RVA: 0x000145D8 File Offset: 0x000127D8
587 public override string ToString()
588 {
589 if (this.haveProcessId || this.haveProcessHandle)
590 {
591 string processName = this.ProcessName;
592 if (processName._stringLength != 0)
593 {
595 string text = base.ToString();
596 return string.Format(currentCulture, "{0} ({1})", text, processName);
597 }
598 }
599 return base.ToString();
600 }
601
602 // Token: 0x060004FB RID: 1275 RVA: 0x00014630 File Offset: 0x00012830
603 public bool WaitForExit(int milliseconds)
604 {
605 long num = 0L;
607 this.signaled = true;
609 if (asyncStreamReader != null && asyncStreamReader.eofEvent != null)
610 {
611 ManualResetEvent eofEvent = asyncStreamReader.eofEvent;
612 }
614 if (asyncStreamReader2 != null && asyncStreamReader2.eofEvent != null)
615 {
617 }
618 long num2 = 0L;
619 if (processHandle != null)
620 {
621 if (this.haveProcessHandle)
622 {
624 }
625 processHandle.Close();
626 }
627 if (num2 == 0L && 7 == 0 && this.watchForExit)
628 {
629 this.RaiseOnExited();
630 }
631 throw new OutOfMemoryException();
632 }
633
634 // Token: 0x060004FC RID: 1276 RVA: 0x000146F4 File Offset: 0x000128F4
635 public void WaitForExit()
636 {
637 }
638
639 // Token: 0x060004FD RID: 1277 RVA: 0x00002050 File Offset: 0x00000250
640 private static string ProcessName_icall(IntPtr handle)
641 {
642 throw new global::Cpp2IlInjected.AnalysisFailedException("CPP2IL failed to recover any usable IL for this method.");
643 }
644
645 // Token: 0x060004FE RID: 1278 RVA: 0x00014704 File Offset: 0x00012904
647 {
648 if (!false)
649 {
650 }
651 throw new OutOfMemoryException();
652 }
653
654 // Token: 0x170000EA RID: 234
655 // (get) Token: 0x060004FF RID: 1279 RVA: 0x0001472C File Offset: 0x0001292C
656 [global::System.ComponentModel.DesignerSerializationVisibility(global::System.ComponentModel.DesignerSerializationVisibility.Hidden)]
657 [MonitoringDescription("The name of this process.")]
658 public string ProcessName
659 {
660 get
661 {
662 string text5;
663 if (this.process_name == null)
664 {
665 int num = 1024;
666 int num2 = 1;
670 if (text == null)
671 {
672 long num3 = 0L;
673 long num4 = 0L;
674 if ((num3 != 0L || num3 != 0L) && this.haveProcessHandle)
675 {
677 }
678 if (num4 == 0L)
679 {
680 }
681 throw new OutOfMemoryException();
682 }
683 bool flag = text.EndsWith(".exe");
684 bool flag2 = this.process_name.EndsWith(".bat");
685 string text2 = this.process_name;
686 long num5 = 0L;
687 bool flag3 = text2.EndsWith(".com");
688 string text3 = this.process_name;
689 int stringLength = text3._stringLength;
690 long num6 = 0L;
691 string text4 = text3.Substring((int)num6, (int)num5);
692 long num7 = 0L;
694 if (processHandle != null)
695 {
696 if (this.haveProcessHandle)
697 {
699 }
700 processHandle.Close();
701 }
702 if (num7 != 0L)
703 {
704 throw new OutOfMemoryException();
705 }
706 text5 = this.process_name;
707 }
708 return text5;
709 }
710 }
711
712 // Token: 0x06000500 RID: 1280 RVA: 0x00002050 File Offset: 0x00000250
714 {
715 throw new global::Cpp2IlInjected.AnalysisFailedException("CPP2IL failed to recover any usable IL for this method.");
716 }
717
718 // Token: 0x06000501 RID: 1281 RVA: 0x00002050 File Offset: 0x00000250
720 {
721 throw new global::Cpp2IlInjected.AnalysisFailedException("CPP2IL failed to recover any usable IL for this method.");
722 }
723
724 // Token: 0x06000502 RID: 1282 RVA: 0x00002050 File Offset: 0x00000250
726 {
727 throw new global::Cpp2IlInjected.AnalysisFailedException("CPP2IL failed to recover any usable IL for this method.");
728 }
729
730 // Token: 0x06000503 RID: 1283 RVA: 0x00014828 File Offset: 0x00012A28
731 private static void CreatePipe([Out] IntPtr read, [Out] IntPtr write, bool writeDirection)
732 {
733 if (!true)
734 {
735 }
739 int processAccess = currentProcess.m_processAccess;
740 IntPtr handle = currentProcess.OpenProcessHandle(processAccess).handle;
743 int processAccess2 = currentProcess2.m_processAccess;
746 if (safeProcessHandle != null)
747 {
749 return;
750 }
752 }
753
754 // Token: 0x170000EB RID: 235
755 // (get) Token: 0x06000504 RID: 1284 RVA: 0x000148AC File Offset: 0x00012AAC
756 private static bool IsWindows
757 {
758 get
759 {
761 return true;
762 }
763 }
764
765 // Token: 0x06000505 RID: 1285 RVA: 0x00002050 File Offset: 0x00000250
767 {
768 throw new global::Cpp2IlInjected.AnalysisFailedException("CPP2IL failed to recover any usable IL for this method.");
769 }
770
771 // Token: 0x06000506 RID: 1286 RVA: 0x000148CC File Offset: 0x00012ACC
773 {
774 string userName = startInfo.userName;
775 if (userName == null)
776 {
777 }
778 if (userName == null)
779 {
780 }
781 if (startInfo.domain == null)
782 {
783 }
785 if (password != null)
786 {
788 return;
789 }
790 bool loadUserProfile = startInfo.loadUserProfile;
791 procInfo.LoadUserProfile = loadUserProfile;
792 }
793
794 // Token: 0x06000507 RID: 1287 RVA: 0x00014910 File Offset: 0x00012B10
795 private void RaiseOnExited()
796 {
797 if (this.watchForExit && !this.raisedOnExited)
798 {
799 if (!this.raisedOnExited)
800 {
801 this.raisedOnExited = true;
802 this.OnExited();
803 }
804 long num = 0L;
805 if (true)
806 {
807 Monitor.Exit(this);
808 }
809 if (num != 0L)
810 {
811 throw new OutOfMemoryException();
812 }
813 }
814 }
815
816 // Token: 0x040003C9 RID: 969
817 private bool haveProcessId;
818
819 // Token: 0x040003CA RID: 970
820 private int processId;
821
822 // Token: 0x040003CB RID: 971
823 private bool haveProcessHandle;
824
825 // Token: 0x040003CC RID: 972
827
828 // Token: 0x040003CD RID: 973
829 private bool isRemoteMachine;
830
831 // Token: 0x040003CE RID: 974
832 private string machineName;
833
834 // Token: 0x040003CF RID: 975
835 private int m_processAccess;
836
837 // Token: 0x040003D0 RID: 976
839
840 // Token: 0x040003D1 RID: 977
842
843 // Token: 0x040003D2 RID: 978
845
846 // Token: 0x040003D3 RID: 979
847 private bool havePriorityClass;
848
849 // Token: 0x040003D4 RID: 980
851
852 // Token: 0x040003D5 RID: 981
854
855 // Token: 0x040003D6 RID: 982
856 private bool watchForExit;
857
858 // Token: 0x040003D7 RID: 983
859 private bool watchingForExit;
860
861 // Token: 0x040003D8 RID: 984
863
864 // Token: 0x040003D9 RID: 985
865 private bool exited;
866
867 // Token: 0x040003DA RID: 986
868 private int exitCode;
869
870 // Token: 0x040003DB RID: 987
871 private bool signaled;
872
873 // Token: 0x040003DC RID: 988
874 private bool haveExitTime;
875
876 // Token: 0x040003DD RID: 989
877 private bool raisedOnExited;
878
879 // Token: 0x040003DE RID: 990
881
882 // Token: 0x040003DF RID: 991
884
885 // Token: 0x040003E0 RID: 992
886 private global::System.ComponentModel.ISynchronizeInvoke synchronizingObject;
887
888 // Token: 0x040003E1 RID: 993
890
891 // Token: 0x040003E2 RID: 994
893
894 // Token: 0x040003E3 RID: 995
896
897 // Token: 0x040003E4 RID: 996
898 private bool disposed;
899
900 // Token: 0x040003E5 RID: 997
902
903 // Token: 0x040003E6 RID: 998
905
906 // Token: 0x040003E7 RID: 999
908
909 // Token: 0x040003E8 RID: 1000
911
912 // Token: 0x040003E9 RID: 1001
914
915 // Token: 0x040003EA RID: 1002
916 private string process_name;
917
918 // Token: 0x020000D7 RID: 215
919 private enum StreamReadMode
920 {
921 // Token: 0x040003EC RID: 1004
922 undefined,
923 // Token: 0x040003ED RID: 1005
924 syncMode,
925 // Token: 0x040003EE RID: 1006
927 }
928
929 // Token: 0x020000D8 RID: 216
930 private enum State
931 {
932 // Token: 0x040003F0 RID: 1008
933 HaveId = 1,
934 // Token: 0x040003F1 RID: 1009
935 IsLocal,
936 // Token: 0x040003F2 RID: 1010
937 IsNt = 4,
938 // Token: 0x040003F3 RID: 1011
939 HaveProcessInfo = 8,
940 // Token: 0x040003F4 RID: 1012
941 Exited = 16,
942 // Token: 0x040003F5 RID: 1013
943 Associated = 32,
944 // Token: 0x040003F6 RID: 1014
945 IsWin2k = 64,
946 // Token: 0x040003F7 RID: 1015
948 }
949
950 // Token: 0x020000D9 RID: 217
951 private struct ProcInfo
952 {
953 // Token: 0x040003F8 RID: 1016
955
956 // Token: 0x040003F9 RID: 1017
957 public int pid;
958
959 // Token: 0x040003FA RID: 1018
960 public string[] envVariables;
961
962 // Token: 0x040003FB RID: 1019
963 public string UserName;
964
965 // Token: 0x040003FC RID: 1020
966 public string Domain;
967
968 // Token: 0x040003FD RID: 1021
970
971 // Token: 0x040003FE RID: 1022
972 public bool LoadUserProfile;
973 }
974 }
975}
class f__AnonymousType0<< Count > j__TPar
static IntPtr GetCurrentProcess()
static bool GetExitCodeProcess(IntPtr processHandle, [Out] int exitCode)
IntPtr method_code
Definition Delegate.cs:386
IntPtr invoke_impl
Definition Delegate.cs:371
static bool CreateProcess_internal(ProcessStartInfo startInfo, IntPtr stdin, IntPtr stdout, IntPtr stderr, Process.ProcInfo procInfo)
Definition Process.cs:719
void CompletionCallback(object context, bool wasSignaled)
Definition Process.cs:304
static void FillUserInfo(ProcessStartInfo startInfo, Process.ProcInfo procInfo)
Definition Process.cs:772
static void CreatePipe([Out] IntPtr read, [Out] IntPtr write, bool writeDirection)
Definition Process.cs:731
ProcessStartInfo StartInfo
Definition Process.cs:146
void ReleaseProcessHandle(Microsoft.Win32.SafeHandles.SafeProcessHandle handle)
Definition Process.cs:290
ProcessPriorityClass priorityClass
Definition Process.cs:850
Microsoft.Win32.SafeHandles.SafeProcessHandle OpenProcessHandle(int access)
Definition Process.cs:483
Microsoft.Win32.SafeHandles.SafeProcessHandle GetProcessHandle(int access)
Definition Process.cs:477
AsyncStreamReader output
Definition Process.cs:910
Process.StreamReadMode inputStreamReadMode
Definition Process.cs:907
AsyncStreamReader error
Definition Process.cs:913
Microsoft.Win32.SafeHandles.SafeProcessHandle m_processHandle
Definition Process.cs:826
Process(string machineName, bool isRemoteMachine, int processId, ProcessInfo processInfo)
Definition Process.cs:32
ProcessStartInfo startInfo
Definition Process.cs:853
static Process Start(ProcessStartInfo startInfo)
Definition Process.cs:561
bool WaitForExit(int milliseconds)
Definition Process.cs:603
ProcessModuleCollection modules
Definition Process.cs:841
StreamReader standardOutput
Definition Process.cs:889
static bool ShellExecuteEx_internal(ProcessStartInfo startInfo, Process.ProcInfo procInfo)
Definition Process.cs:713
StreamWriter StandardInput
Definition Process.cs:224
StreamReader StandardOutput
Definition Process.cs:258
Microsoft.Win32.SafeHandles.SafeProcessHandle GetProcessHandle(int access, bool throwIfExited)
Definition Process.cs:458
global::System.ComponentModel.ISynchronizeInvoke SynchronizingObject
Definition Process.cs:187
static string ProcessName_icall(IntPtr handle)
Definition Process.cs:640
ProcessThreadCollection threads
Definition Process.cs:838
static string ProcessName_internal(Microsoft.Win32.SafeHandles.SafeProcessHandle handle)
Definition Process.cs:646
void SetProcessHandle(Microsoft.Win32.SafeHandles.SafeProcessHandle processHandle)
Definition Process.cs:518
StreamWriter standardInput
Definition Process.cs:892
override void Dispose(bool disposing)
Definition Process.cs:311
void EnsureState(Process.State state)
Definition Process.cs:366
Process.StreamReadMode outputStreamReadMode
Definition Process.cs:901
static Process Start(string fileName)
Definition Process.cs:554
global::System.ComponentModel.ISynchronizeInvoke synchronizingObject
Definition Process.cs:886
StreamReader standardError
Definition Process.cs:895
RegisteredWaitHandle registeredWaitHandle
Definition Process.cs:880
void SetProcessId(int processId)
Definition Process.cs:531
ProcessPriorityClass PriorityClass
Definition Process.cs:113
Process.StreamReadMode errorStreamReadMode
Definition Process.cs:904
static Process GetCurrentProcess()
Definition Process.cs:416
bool StartWithCreateProcess(ProcessStartInfo startInfo)
Definition Process.cs:766
bool StartWithShellExecuteEx(ProcessStartInfo startInfo)
Definition Process.cs:725
override string ToString()
Definition Process.cs:587
static OperatingSystem OSVersion
static CultureInfo CurrentCulture
readonly PlatformID _platform
static IntPtr SecureStringToBSTR(SecureString s)
Definition Marshal.cs:322
static void Exit(object obj)
Definition Monitor.cs:47