Files
niko c12fbe3fc6 m
2026-04-12 16:51:38 +02:00

868 lines
40 KiB
C#

using System;
using System.ComponentModel;
using System.IO;
using System.Runtime.CompilerServices;
using System.Threading;
using Cpp2IlInjected;
using Microsoft.Win32.SafeHandles;
namespace System.Diagnostics
{
/// <summary>Provides access to local and remote processes and enables you to start and stop local system processes.</summary>
// Token: 0x020000C5 RID: 197
[Token(Token = "0x20000C5")]
[DefaultEvent("Exited")]
[MonitoringDescription("Provides access to local and remote processes, enabling starting and stopping of local processes.")]
[DefaultProperty("StartInfo")]
[Designer("System.Diagnostics.Design.ProcessDesigner, System.Design, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a")]
public class Process : Component
{
/// <summary>Initializes a new instance of the <see cref="T:System.Diagnostics.Process" /> class.</summary>
// Token: 0x060004AB RID: 1195 RVA: 0x00002053 File Offset: 0x00000253
[Token(Token = "0x60004AB")]
[Address(RVA = "0x2F45540", Offset = "0x2F44540", VA = "0x182F45540")]
public Process()
{
}
// Token: 0x060004AC RID: 1196 RVA: 0x00002053 File Offset: 0x00000253
[Token(Token = "0x60004AC")]
[Address(RVA = "0x2F454A0", Offset = "0x2F444A0", VA = "0x182F454A0")]
private Process(string machineName, bool isRemoteMachine, int processId, ProcessInfo processInfo)
{
}
// Token: 0x170000A8 RID: 168
// (get) Token: 0x060004AD RID: 1197 RVA: 0x00003F00 File Offset: 0x00002100
[Token(Token = "0x170000A8")]
[Browsable(false)]
[MonitoringDescription("Indicates if the process component is associated with a real process.")]
[DesignerSerializationVisibility(DesignerSerializationVisibility.Hidden)]
private bool Associated
{
[Token(Token = "0x60004AD")]
[Address(RVA = "0x2F455B0", Offset = "0x2F445B0", VA = "0x182F455B0")]
get
{
return default(bool);
}
}
/// <summary>Gets a value indicating whether the associated process has been terminated.</summary>
/// <returns>
/// <see langword="true" /> if the operating system process referenced by the <see cref="T:System.Diagnostics.Process" /> component has terminated; otherwise, <see langword="false" />.</returns>
/// <exception cref="T:System.InvalidOperationException">There is no process associated with the object.</exception>
/// <exception cref="T:System.ComponentModel.Win32Exception">The exit code for the process could not be retrieved.</exception>
/// <exception cref="T:System.NotSupportedException">You are trying to access the <see cref="P:System.Diagnostics.Process.HasExited" /> property for a process that is running on a remote computer. This property is available only for processes that are running on the local computer.</exception>
// Token: 0x170000A9 RID: 169
// (get) Token: 0x060004AE RID: 1198 RVA: 0x00003F18 File Offset: 0x00002118
[Token(Token = "0x170000A9")]
[MonitoringDescription("Indicates if the associated process has been terminated.")]
[Browsable(false)]
[DesignerSerializationVisibility(DesignerSerializationVisibility.Hidden)]
public bool HasExited
{
[Token(Token = "0x60004AE")]
[Address(RVA = "0x2F456A0", Offset = "0x2F446A0", VA = "0x182F456A0")]
get
{
return default(bool);
}
}
/// <summary>Gets the native handle of the associated process.</summary>
/// <returns>The handle that the operating system assigned to the associated process when the process was started. The system uses this handle to keep track of process attributes.</returns>
/// <exception cref="T:System.InvalidOperationException">The process has not been started or has exited. The <see cref="P:System.Diagnostics.Process.Handle" /> property cannot be read because there is no process associated with this <see cref="T:System.Diagnostics.Process" /> instance.
/// -or-
/// The <see cref="T:System.Diagnostics.Process" /> instance has been attached to a running process but you do not have the necessary permissions to get a handle with full access rights.</exception>
/// <exception cref="T:System.NotSupportedException">You are trying to access the <see cref="P:System.Diagnostics.Process.Handle" /> property for a process that is running on a remote computer. This property is available only for processes that are running on the local computer.</exception>
// Token: 0x170000AA RID: 170
// (get) Token: 0x060004AF RID: 1199 RVA: 0x00003F30 File Offset: 0x00002130
[Token(Token = "0x170000AA")]
[DesignerSerializationVisibility(DesignerSerializationVisibility.Hidden)]
[MonitoringDescription("Returns the native handle for this process. The handle is only available if the process was started using this component.")]
[Browsable(false)]
public IntPtr Handle
{
[Token(Token = "0x60004AF")]
[Address(RVA = "0x2F455C0", Offset = "0x2F445C0", VA = "0x182F455C0")]
get
{
return 0;
}
}
/// <summary>Gets the unique identifier for the associated process.</summary>
/// <returns>The system-generated unique identifier of the process that is referenced by this <see cref="T:System.Diagnostics.Process" /> instance.</returns>
/// <exception cref="T:System.InvalidOperationException">The process's <see cref="P:System.Diagnostics.Process.Id" /> property has not been set.
/// -or-
/// There is no process associated with this <see cref="T:System.Diagnostics.Process" /> object.</exception>
/// <exception cref="T:System.PlatformNotSupportedException">The platform is Windows 98 or Windows Millennium Edition (Windows Me); set the <see cref="P:System.Diagnostics.ProcessStartInfo.UseShellExecute" /> property to <see langword="false" /> to access this property on Windows 98 and Windows Me.</exception>
// Token: 0x170000AB RID: 171
// (get) Token: 0x060004B0 RID: 1200 RVA: 0x00003F48 File Offset: 0x00002148
[Token(Token = "0x170000AB")]
[DesignerSerializationVisibility(DesignerSerializationVisibility.Hidden)]
[MonitoringDescription("The unique identifier for the process.")]
public int Id
{
[Token(Token = "0x60004B0")]
[Address(RVA = "0x2F45960", Offset = "0x2F44960", VA = "0x182F45960")]
get
{
return 0;
}
}
/// <summary>Gets or sets the properties to pass to the <see cref="M:System.Diagnostics.Process.Start" /> method of the <see cref="T:System.Diagnostics.Process" />.</summary>
/// <returns>The <see cref="T:System.Diagnostics.ProcessStartInfo" /> that represents the data with which to start the process. These arguments include the name of the executable file or document used to start the process.</returns>
/// <exception cref="T:System.ArgumentNullException">The value that specifies the <see cref="P:System.Diagnostics.Process.StartInfo" /> is <see langword="null" />.</exception>
// Token: 0x170000AC RID: 172
// (get) Token: 0x060004B1 RID: 1201 RVA: 0x00002050 File Offset: 0x00000250
// (set) Token: 0x060004B2 RID: 1202 RVA: 0x00002053 File Offset: 0x00000253
[Token(Token = "0x170000AC")]
[DesignerSerializationVisibility(DesignerSerializationVisibility.Content)]
[MonitoringDescription("Specifies information used to start a process.")]
[Browsable(false)]
public ProcessStartInfo StartInfo
{
[Token(Token = "0x60004B1")]
[Address(RVA = "0x2F45DC0", Offset = "0x2F44DC0", VA = "0x182F45DC0")]
get
{
return null;
}
[Token(Token = "0x60004B2")]
[Address(RVA = "0x2F45F90", Offset = "0x2F44F90", VA = "0x182F45F90")]
set
{
}
}
/// <summary>Gets or sets the object used to marshal the event handler calls that are issued as a result of a process exit event.</summary>
/// <returns>The <see cref="T:System.ComponentModel.ISynchronizeInvoke" /> used to marshal event handler calls that are issued as a result of an <see cref="E:System.Diagnostics.Process.Exited" /> event on the process.</returns>
// Token: 0x170000AD RID: 173
// (get) Token: 0x060004B3 RID: 1203 RVA: 0x00002050 File Offset: 0x00000250
[Token(Token = "0x170000AD")]
[MonitoringDescription("The object used to marshal the event handler calls issued as a result of a Process exit.")]
[DefaultValue(null)]
[Browsable(false)]
public ISynchronizeInvoke SynchronizingObject
{
[Token(Token = "0x60004B3")]
[Address(RVA = "0x2F45E70", Offset = "0x2F44E70", VA = "0x182F45E70")]
get
{
return null;
}
}
/// <summary>Gets a stream used to write the input of the application.</summary>
/// <returns>A <see cref="T:System.IO.StreamWriter" /> that can be used to write the standard input stream of the application.</returns>
/// <exception cref="T:System.InvalidOperationException">The <see cref="P:System.Diagnostics.Process.StandardInput" /> stream has not been defined because <see cref="P:System.Diagnostics.ProcessStartInfo.RedirectStandardInput" /> is set to <see langword="false" />.</exception>
// Token: 0x170000AE RID: 174
// (get) Token: 0x060004B4 RID: 1204 RVA: 0x00002050 File Offset: 0x00000250
[Token(Token = "0x170000AE")]
[MonitoringDescription("Standard input stream of the process.")]
[DesignerSerializationVisibility(DesignerSerializationVisibility.Hidden)]
[Browsable(false)]
public StreamWriter StandardInput
{
[Token(Token = "0x60004B4")]
[Address(RVA = "0x2F45C50", Offset = "0x2F44C50", VA = "0x182F45C50")]
get
{
return null;
}
}
/// <summary>Gets a stream used to read the textual output of the application.</summary>
/// <returns>A <see cref="T:System.IO.StreamReader" /> that can be used to read the standard output stream of the application.</returns>
/// <exception cref="T:System.InvalidOperationException">The <see cref="P:System.Diagnostics.Process.StandardOutput" /> stream has not been defined for redirection; ensure <see cref="P:System.Diagnostics.ProcessStartInfo.RedirectStandardOutput" /> is set to <see langword="true" /> and <see cref="P:System.Diagnostics.ProcessStartInfo.UseShellExecute" /> is set to <see langword="false" />.
/// -or-
/// The <see cref="P:System.Diagnostics.Process.StandardOutput" /> stream has been opened for asynchronous read operations with <see cref="M:System.Diagnostics.Process.BeginOutputReadLine" />.</exception>
// Token: 0x170000AF RID: 175
// (get) Token: 0x060004B5 RID: 1205 RVA: 0x00002050 File Offset: 0x00000250
[Token(Token = "0x170000AF")]
[Browsable(false)]
[MonitoringDescription("Standard output stream of the process.")]
[DesignerSerializationVisibility(DesignerSerializationVisibility.Hidden)]
public StreamReader StandardOutput
{
[Token(Token = "0x60004B5")]
[Address(RVA = "0x2F45CE0", Offset = "0x2F44CE0", VA = "0x182F45CE0")]
get
{
return null;
}
}
/// <summary>Gets a stream used to read the error output of the application.</summary>
/// <returns>A <see cref="T:System.IO.StreamReader" /> that can be used to read the standard error stream of the application.</returns>
/// <exception cref="T:System.InvalidOperationException">The <see cref="P:System.Diagnostics.Process.StandardError" /> stream has not been defined for redirection; ensure <see cref="P:System.Diagnostics.ProcessStartInfo.RedirectStandardError" /> is set to <see langword="true" /> and <see cref="P:System.Diagnostics.ProcessStartInfo.UseShellExecute" /> is set to <see langword="false" />.
/// -or-
/// The <see cref="P:System.Diagnostics.Process.StandardError" /> stream has been opened for asynchronous read operations with <see cref="M:System.Diagnostics.Process.BeginErrorReadLine" />.</exception>
// Token: 0x170000B0 RID: 176
// (get) Token: 0x060004B6 RID: 1206 RVA: 0x00002050 File Offset: 0x00000250
[Token(Token = "0x170000B0")]
[MonitoringDescription("Standard error stream of the process.")]
[DesignerSerializationVisibility(DesignerSerializationVisibility.Hidden)]
[Browsable(false)]
public StreamReader StandardError
{
[Token(Token = "0x60004B6")]
[Address(RVA = "0x2F45B70", Offset = "0x2F44B70", VA = "0x182F45B70")]
get
{
return null;
}
}
// Token: 0x060004B7 RID: 1207 RVA: 0x00002053 File Offset: 0x00000253
[Token(Token = "0x60004B7")]
[Address(RVA = "0x2F43890", Offset = "0x2F42890", VA = "0x182F43890")]
private void ReleaseProcessHandle(SafeProcessHandle handle)
{
}
// Token: 0x060004B8 RID: 1208 RVA: 0x00002053 File Offset: 0x00000253
[Token(Token = "0x60004B8")]
[Address(RVA = "0x2F42570", Offset = "0x2F41570", VA = "0x182F42570")]
private void CompletionCallback(object context, bool wasSignaled)
{
}
/// <summary>Release all resources used by this process.</summary>
/// <param name="disposing">
/// <see langword="true" /> to release both managed and unmanaged resources; <see langword="false" /> to release only unmanaged resources.</param>
// Token: 0x060004B9 RID: 1209 RVA: 0x00002053 File Offset: 0x00000253
[Token(Token = "0x60004B9")]
[Address(RVA = "0x2F428A0", Offset = "0x2F418A0", VA = "0x182F428A0", Slot = "14")]
protected override void Dispose(bool disposing)
{
}
/// <summary>Frees all the resources that are associated with this component.</summary>
// Token: 0x060004BA RID: 1210 RVA: 0x00002053 File Offset: 0x00000253
[Token(Token = "0x60004BA")]
[Address(RVA = "0x2F423D0", Offset = "0x2F413D0", VA = "0x182F423D0")]
public void Close()
{
}
// Token: 0x060004BB RID: 1211 RVA: 0x00002053 File Offset: 0x00000253
[Token(Token = "0x60004BB")]
[Address(RVA = "0x2F428F0", Offset = "0x2F418F0", VA = "0x182F428F0")]
private void EnsureState(Process.State state)
{
}
// Token: 0x060004BC RID: 1212 RVA: 0x00002053 File Offset: 0x00000253
[Token(Token = "0x60004BC")]
[Address(RVA = "0x2F42B10", Offset = "0x2F41B10", VA = "0x182F42B10")]
private void EnsureWatchingForExit()
{
}
/// <summary>Gets a new <see cref="T:System.Diagnostics.Process" /> component and associates it with the currently active process.</summary>
/// <returns>A new <see cref="T:System.Diagnostics.Process" /> component associated with the process resource that is running the calling application.</returns>
// Token: 0x060004BD RID: 1213 RVA: 0x00002050 File Offset: 0x00000250
[Token(Token = "0x60004BD")]
[Address(RVA = "0x2F42DD0", Offset = "0x2F41DD0", VA = "0x182F42DD0")]
public static Process GetCurrentProcess()
{
return null;
}
/// <summary>Raises the <see cref="E:System.Diagnostics.Process.Exited" /> event.</summary>
// Token: 0x060004BE RID: 1214 RVA: 0x00002053 File Offset: 0x00000253
[Token(Token = "0x60004BE")]
[Address(RVA = "0x2F433C0", Offset = "0x2F423C0", VA = "0x182F433C0")]
protected void OnExited()
{
}
// Token: 0x060004BF RID: 1215 RVA: 0x00002050 File Offset: 0x00000250
[Token(Token = "0x60004BF")]
[Address(RVA = "0x2F42EA0", Offset = "0x2F41EA0", VA = "0x182F42EA0")]
private SafeProcessHandle GetProcessHandle(int access, bool throwIfExited)
{
return null;
}
// Token: 0x060004C0 RID: 1216 RVA: 0x00002050 File Offset: 0x00000250
[Token(Token = "0x60004C0")]
[Address(RVA = "0x2F42E90", Offset = "0x2F41E90", VA = "0x182F42E90")]
private SafeProcessHandle GetProcessHandle(int access)
{
return null;
}
// Token: 0x060004C1 RID: 1217 RVA: 0x00002050 File Offset: 0x00000250
[Token(Token = "0x60004C1")]
[Address(RVA = "0x2F43620", Offset = "0x2F42620", VA = "0x182F43620")]
private SafeProcessHandle OpenProcessHandle(int access)
{
return null;
}
/// <summary>Discards any information about the associated process that has been cached inside the process component.</summary>
// Token: 0x060004C2 RID: 1218 RVA: 0x00002053 File Offset: 0x00000253
[Token(Token = "0x60004C2")]
[Address(RVA = "0x2F43860", Offset = "0x2F42860", VA = "0x182F43860")]
public void Refresh()
{
}
// Token: 0x060004C3 RID: 1219 RVA: 0x00002053 File Offset: 0x00000253
[Token(Token = "0x60004C3")]
[Address(RVA = "0x2F438B0", Offset = "0x2F428B0", VA = "0x182F438B0")]
private void SetProcessHandle(SafeProcessHandle processHandle)
{
}
// Token: 0x060004C4 RID: 1220 RVA: 0x00002053 File Offset: 0x00000253
[Token(Token = "0x60004C4")]
[Address(RVA = "0x2F438D0", Offset = "0x2F428D0", VA = "0x182F438D0")]
private void SetProcessId(int processId)
{
}
/// <summary>Starts (or reuses) the process resource that is specified by the <see cref="P:System.Diagnostics.Process.StartInfo" /> property of this <see cref="T:System.Diagnostics.Process" /> component and associates it with the component.</summary>
/// <returns>
/// <see langword="true" /> if a process resource is started; <see langword="false" /> if no new process resource is started (for example, if an existing process is reused).</returns>
/// <exception cref="T:System.InvalidOperationException">No file name was specified in the <see cref="T:System.Diagnostics.Process" /> component's <see cref="P:System.Diagnostics.Process.StartInfo" />.
/// -or-
/// The <see cref="P:System.Diagnostics.ProcessStartInfo.UseShellExecute" /> member of the <see cref="P:System.Diagnostics.Process.StartInfo" /> property is <see langword="true" /> while <see cref="P:System.Diagnostics.ProcessStartInfo.RedirectStandardInput" />, <see cref="P:System.Diagnostics.ProcessStartInfo.RedirectStandardOutput" />, or <see cref="P:System.Diagnostics.ProcessStartInfo.RedirectStandardError" /> is <see langword="true" />.</exception>
/// <exception cref="T:System.ComponentModel.Win32Exception">There was an error in opening the associated file.</exception>
/// <exception cref="T:System.ObjectDisposedException">The process object has already been disposed.</exception>
/// <exception cref="T:System.PlatformNotSupportedException">Method not supported on operating systems without shell support such as Nano Server (.NET Core only).</exception>
// Token: 0x060004C5 RID: 1221 RVA: 0x00003F60 File Offset: 0x00002160
[Token(Token = "0x60004C5")]
[Address(RVA = "0x2F44EA0", Offset = "0x2F43EA0", VA = "0x182F44EA0")]
public bool Start()
{
return default(bool);
}
/// <summary>Starts a process resource by specifying the name of an application and a set of command-line arguments, and associates the resource with a new <see cref="T:System.Diagnostics.Process" /> component.</summary>
/// <param name="fileName">The name of an application file to run in the process.</param>
/// <param name="arguments">Command-line arguments to pass when starting the process.</param>
/// <returns>A new <see cref="T:System.Diagnostics.Process" /> that is associated with the process resource, or <see langword="null" /> if no process resource is started. Note that a new process that's started alongside already running instances of the same process will be independent from the others. In addition, Start may return a non-null Process with its <see cref="P:System.Diagnostics.Process.HasExited" /> property already set to <see langword="true" />. In this case, the started process may have activated an existing instance of itself and then exited.</returns>
/// <exception cref="T:System.InvalidOperationException">The <paramref name="fileName" /> or <paramref name="arguments" /> parameter is <see langword="null" />.</exception>
/// <exception cref="T:System.ComponentModel.Win32Exception">An error occurred when opening the associated file.
/// -or-
/// The sum of the length of the arguments and the length of the full path to the process exceeds 2080. The error message associated with this exception can be one of the following: "The data area passed to a system call is too small." or "Access is denied."</exception>
/// <exception cref="T:System.ObjectDisposedException">The process object has already been disposed.</exception>
/// <exception cref="T:System.IO.FileNotFoundException">The PATH environment variable has a string containing quotes.</exception>
// Token: 0x060004C6 RID: 1222 RVA: 0x00002050 File Offset: 0x00000250
[Token(Token = "0x60004C6")]
[Address(RVA = "0x2F44E30", Offset = "0x2F43E30", VA = "0x182F44E30")]
public static Process Start(string fileName, string arguments)
{
return null;
}
/// <summary>Starts the process resource that is specified by the parameter containing process start information (for example, the file name of the process to start) and associates the resource with a new <see cref="T:System.Diagnostics.Process" /> component.</summary>
/// <param name="startInfo">The <see cref="T:System.Diagnostics.ProcessStartInfo" /> that contains the information that is used to start the process, including the file name and any command-line arguments.</param>
/// <returns>A new <see cref="T:System.Diagnostics.Process" /> that is associated with the process resource, or <see langword="null" /> if no process resource is started. Note that a new process that's started alongside already running instances of the same process will be independent from the others. In addition, Start may return a non-null Process with its <see cref="P:System.Diagnostics.Process.HasExited" /> property already set to <see langword="true" />. In this case, the started process may have activated an existing instance of itself and then exited.</returns>
/// <exception cref="T:System.InvalidOperationException">No file name was specified in the <paramref name="startInfo" /> parameter's <see cref="P:System.Diagnostics.ProcessStartInfo.FileName" /> property.
/// -or-
/// The <see cref="P:System.Diagnostics.ProcessStartInfo.UseShellExecute" /> property of the <paramref name="startInfo" /> parameter is <see langword="true" /> and the <see cref="P:System.Diagnostics.ProcessStartInfo.RedirectStandardInput" />, <see cref="P:System.Diagnostics.ProcessStartInfo.RedirectStandardOutput" />, or <see cref="P:System.Diagnostics.ProcessStartInfo.RedirectStandardError" /> property is also <see langword="true" />.
/// -or-
/// The <see cref="P:System.Diagnostics.ProcessStartInfo.UseShellExecute" /> property of the <paramref name="startInfo" /> parameter is <see langword="true" /> and the <see cref="P:System.Diagnostics.ProcessStartInfo.UserName" /> property is not <see langword="null" /> or empty or the <see cref="P:System.Diagnostics.ProcessStartInfo.Password" /> property is not <see langword="null" />.</exception>
/// <exception cref="T:System.ArgumentNullException">The <paramref name="startInfo" /> parameter is <see langword="null" />.</exception>
/// <exception cref="T:System.ObjectDisposedException">The process object has already been disposed.</exception>
/// <exception cref="T:System.IO.FileNotFoundException">The file specified in the <paramref name="startInfo" /> parameter's <see cref="P:System.Diagnostics.ProcessStartInfo.FileName" /> property could not be found.</exception>
/// <exception cref="T:System.ComponentModel.Win32Exception">An error occurred when opening the associated file.
/// -or-
/// The sum of the length of the arguments and the length of the full path to the process exceeds 2080. The error message associated with this exception can be one of the following: "The data area passed to a system call is too small." or "Access is denied."</exception>
/// <exception cref="T:System.PlatformNotSupportedException">Method not supported on operating systems without shell support such as Nano Server (.NET Core only).</exception>
// Token: 0x060004C7 RID: 1223 RVA: 0x00002050 File Offset: 0x00000250
[Token(Token = "0x60004C7")]
[Address(RVA = "0x2F44BB0", Offset = "0x2F43BB0", VA = "0x182F44BB0")]
public static Process Start(ProcessStartInfo startInfo)
{
return null;
}
/// <summary>Immediately stops the associated process.</summary>
/// <exception cref="T:System.ComponentModel.Win32Exception">The associated process could not be terminated.
/// -or-
/// The process is terminating.
/// -or-
/// The associated process is a Win16 executable.</exception>
/// <exception cref="T:System.NotSupportedException">You are attempting to call <see cref="M:System.Diagnostics.Process.Kill" /> for a process that is running on a remote computer. The method is available only for processes running on the local computer.</exception>
/// <exception cref="T:System.InvalidOperationException">The process has already exited.
/// -or-
/// There is no process associated with this <see cref="T:System.Diagnostics.Process" /> object.</exception>
// Token: 0x060004C8 RID: 1224 RVA: 0x00002053 File Offset: 0x00000253
[Token(Token = "0x60004C8")]
[Address(RVA = "0x2F432D0", Offset = "0x2F422D0", VA = "0x182F432D0")]
public void Kill()
{
}
// Token: 0x060004C9 RID: 1225 RVA: 0x00002053 File Offset: 0x00000253
[Token(Token = "0x60004C9")]
[Address(RVA = "0x2F45030", Offset = "0x2F44030", VA = "0x182F45030")]
private void StopWatchingForExit()
{
}
/// <summary>Formats the process's name as a string, combined with the parent component type, if applicable.</summary>
/// <returns>The <see cref="P:System.Diagnostics.Process.ProcessName" />, combined with the base component's <see cref="M:System.Object.ToString" /> return value.</returns>
/// <exception cref="T:System.PlatformNotSupportedException">
/// <see cref="M:System.Diagnostics.Process.ToString" /> is not supported on Windows 98.</exception>
// Token: 0x060004CA RID: 1226 RVA: 0x00002050 File Offset: 0x00000250
[Token(Token = "0x60004CA")]
[Address(RVA = "0x2F45120", Offset = "0x2F44120", VA = "0x182F45120", Slot = "3")]
public override string ToString()
{
return null;
}
/// <summary>Instructs the <see cref="T:System.Diagnostics.Process" /> component to wait the specified number of milliseconds for the associated process to exit.</summary>
/// <param name="milliseconds">The amount of time, in milliseconds, to wait for the associated process to exit. The maximum is the largest possible value of a 32-bit integer, which represents infinity to the operating system.</param>
/// <returns>
/// <see langword="true" /> if the associated process has exited; otherwise, <see langword="false" />.</returns>
/// <exception cref="T:System.ComponentModel.Win32Exception">The wait setting could not be accessed.</exception>
/// <exception cref="T:System.SystemException">No process <see cref="P:System.Diagnostics.Process.Id" /> has been set, and a <see cref="P:System.Diagnostics.Process.Handle" /> from which the <see cref="P:System.Diagnostics.Process.Id" /> property can be determined does not exist.
/// -or-
/// There is no process associated with this <see cref="T:System.Diagnostics.Process" /> object.
/// -or-
/// You are attempting to call <see cref="M:System.Diagnostics.Process.WaitForExit(System.Int32)" /> for a process that is running on a remote computer. This method is available only for processes that are running on the local computer.</exception>
/// <exception cref="T:System.ArgumentOutOfRangeException">
/// <paramref name="milliseconds" /> is a negative number other than -1, which represents an infinite time-out.</exception>
// Token: 0x060004CB RID: 1227 RVA: 0x00003F78 File Offset: 0x00002178
[Token(Token = "0x60004CB")]
[Address(RVA = "0x2F45230", Offset = "0x2F44230", VA = "0x182F45230")]
public bool WaitForExit(int milliseconds)
{
return default(bool);
}
/// <summary>Instructs the <see cref="T:System.Diagnostics.Process" /> component to wait indefinitely for the associated process to exit.</summary>
/// <exception cref="T:System.ComponentModel.Win32Exception">The wait setting could not be accessed.</exception>
/// <exception cref="T:System.SystemException">No process <see cref="P:System.Diagnostics.Process.Id" /> has been set, and a <see cref="P:System.Diagnostics.Process.Handle" /> from which the <see cref="P:System.Diagnostics.Process.Id" /> property can be determined does not exist.
/// -or-
/// There is no process associated with this <see cref="T:System.Diagnostics.Process" /> object.
/// -or-
/// You are attempting to call <see cref="M:System.Diagnostics.Process.WaitForExit" /> for a process that is running on a remote computer. This method is available only for processes that are running on the local computer.</exception>
// Token: 0x060004CC RID: 1228 RVA: 0x00002053 File Offset: 0x00000253
[Token(Token = "0x60004CC")]
[Address(RVA = "0x2F45490", Offset = "0x2F44490", VA = "0x182F45490")]
public void WaitForExit()
{
}
// Token: 0x060004CD RID: 1229 RVA: 0x00002050 File Offset: 0x00000250
[Token(Token = "0x60004CD")]
[Address(RVA = "0x2F437A0", Offset = "0x2F427A0", VA = "0x182F437A0")]
private static string ProcessName_internal(IntPtr handle)
{
return null;
}
// Token: 0x060004CE RID: 1230 RVA: 0x00002050 File Offset: 0x00000250
[Token(Token = "0x60004CE")]
[Address(RVA = "0x2F436F0", Offset = "0x2F426F0", VA = "0x182F436F0")]
private static string ProcessName_internal(SafeProcessHandle handle)
{
return null;
}
/// <summary>Gets the name of the process.</summary>
/// <returns>The name that the system uses to identify the process to the user.</returns>
/// <exception cref="T:System.InvalidOperationException">The process does not have an identifier, or no process is associated with the <see cref="T:System.Diagnostics.Process" />.
/// -or-
/// The associated process has exited.</exception>
/// <exception cref="T:System.PlatformNotSupportedException">The platform is Windows 98 or Windows Millennium Edition (Windows Me); set <see cref="P:System.Diagnostics.ProcessStartInfo.UseShellExecute" /> to <see langword="false" /> to access this property on Windows 98 and Windows Me.</exception>
/// <exception cref="T:System.NotSupportedException">The process is not on this computer.</exception>
// Token: 0x170000B1 RID: 177
// (get) Token: 0x060004CF RID: 1231 RVA: 0x00002050 File Offset: 0x00000250
[Token(Token = "0x170000B1")]
[MonitoringDescription("The name of this process.")]
[DesignerSerializationVisibility(DesignerSerializationVisibility.Hidden)]
public string ProcessName
{
[Token(Token = "0x60004CF")]
[Address(RVA = "0x2F459C0", Offset = "0x2F449C0", VA = "0x182F459C0")]
get
{
return null;
}
}
// Token: 0x060004D0 RID: 1232 RVA: 0x00003F90 File Offset: 0x00002190
[Token(Token = "0x60004D0")]
[Address(RVA = "0xB53DD0", Offset = "0xB52DD0", VA = "0x180B53DD0")]
private static bool ShellExecuteEx_internal(ProcessStartInfo startInfo, ref Process.ProcInfo procInfo)
{
return default(bool);
}
// Token: 0x060004D1 RID: 1233 RVA: 0x00003FA8 File Offset: 0x000021A8
[Token(Token = "0x60004D1")]
[Address(RVA = "0xB53DD0", Offset = "0xB52DD0", VA = "0x180B53DD0")]
private static bool CreateProcess_internal(ProcessStartInfo startInfo, IntPtr stdin, IntPtr stdout, IntPtr stderr, ref Process.ProcInfo procInfo)
{
return default(bool);
}
// Token: 0x060004D2 RID: 1234 RVA: 0x00003FC0 File Offset: 0x000021C0
[Token(Token = "0x60004D2")]
[Address(RVA = "0x2F44790", Offset = "0x2F43790", VA = "0x182F44790")]
private bool StartWithShellExecuteEx(ProcessStartInfo startInfo)
{
return default(bool);
}
// Token: 0x060004D3 RID: 1235 RVA: 0x00002053 File Offset: 0x00000253
[Token(Token = "0x60004D3")]
[Address(RVA = "0x2F42590", Offset = "0x2F41590", VA = "0x182F42590")]
private static void CreatePipe(out IntPtr read, out IntPtr write, bool writeDirection)
{
}
// Token: 0x170000B2 RID: 178
// (get) Token: 0x060004D4 RID: 1236 RVA: 0x00003FD8 File Offset: 0x000021D8
[Token(Token = "0x170000B2")]
private static bool IsWindows
{
[Token(Token = "0x60004D4")]
[Address(RVA = "0x2F45980", Offset = "0x2F44980", VA = "0x182F45980")]
get
{
return default(bool);
}
}
// Token: 0x060004D5 RID: 1237 RVA: 0x00003FF0 File Offset: 0x000021F0
[Token(Token = "0x60004D5")]
[Address(RVA = "0x2F438E0", Offset = "0x2F428E0", VA = "0x182F438E0")]
private bool StartWithCreateProcess(ProcessStartInfo startInfo)
{
return default(bool);
}
// Token: 0x060004D6 RID: 1238 RVA: 0x00002053 File Offset: 0x00000253
[Token(Token = "0x60004D6")]
[Address(RVA = "0x2F42C70", Offset = "0x2F41C70", VA = "0x182F42C70")]
private static void FillUserInfo(ProcessStartInfo startInfo, ref Process.ProcInfo procInfo)
{
}
// Token: 0x060004D7 RID: 1239 RVA: 0x00002053 File Offset: 0x00000253
[Token(Token = "0x60004D7")]
[Address(RVA = "0x2F437B0", Offset = "0x2F427B0", VA = "0x182F437B0")]
private void RaiseOnExited()
{
}
// Token: 0x04000395 RID: 917
[FieldOffset(Offset = "0x28")]
[Token(Token = "0x4000395")]
private bool haveProcessId;
// Token: 0x04000396 RID: 918
[FieldOffset(Offset = "0x2C")]
[Token(Token = "0x4000396")]
private int processId;
// Token: 0x04000397 RID: 919
[FieldOffset(Offset = "0x30")]
[Token(Token = "0x4000397")]
private bool haveProcessHandle;
// Token: 0x04000398 RID: 920
[FieldOffset(Offset = "0x38")]
[Token(Token = "0x4000398")]
private SafeProcessHandle m_processHandle;
// Token: 0x04000399 RID: 921
[FieldOffset(Offset = "0x40")]
[Token(Token = "0x4000399")]
private bool isRemoteMachine;
// Token: 0x0400039A RID: 922
[FieldOffset(Offset = "0x48")]
[Token(Token = "0x400039A")]
private string machineName;
// Token: 0x0400039B RID: 923
[FieldOffset(Offset = "0x50")]
[Token(Token = "0x400039B")]
private int m_processAccess;
// Token: 0x0400039C RID: 924
[FieldOffset(Offset = "0x58")]
[Token(Token = "0x400039C")]
private ProcessThreadCollection threads;
// Token: 0x0400039D RID: 925
[FieldOffset(Offset = "0x60")]
[Token(Token = "0x400039D")]
private ProcessModuleCollection modules;
// Token: 0x0400039E RID: 926
[FieldOffset(Offset = "0x68")]
[Token(Token = "0x400039E")]
private bool haveWorkingSetLimits;
// Token: 0x0400039F RID: 927
[FieldOffset(Offset = "0x70")]
[Token(Token = "0x400039F")]
private IntPtr minWorkingSet;
// Token: 0x040003A0 RID: 928
[FieldOffset(Offset = "0x78")]
[Token(Token = "0x40003A0")]
private IntPtr maxWorkingSet;
// Token: 0x040003A1 RID: 929
[FieldOffset(Offset = "0x80")]
[Token(Token = "0x40003A1")]
private bool havePriorityClass;
// Token: 0x040003A2 RID: 930
[FieldOffset(Offset = "0x84")]
[Token(Token = "0x40003A2")]
private ProcessPriorityClass priorityClass;
// Token: 0x040003A3 RID: 931
[FieldOffset(Offset = "0x88")]
[Token(Token = "0x40003A3")]
private ProcessStartInfo startInfo;
// Token: 0x040003A4 RID: 932
[FieldOffset(Offset = "0x90")]
[Token(Token = "0x40003A4")]
private bool watchForExit;
// Token: 0x040003A5 RID: 933
[FieldOffset(Offset = "0x91")]
[Token(Token = "0x40003A5")]
private bool watchingForExit;
// Token: 0x040003A6 RID: 934
[FieldOffset(Offset = "0x98")]
[Token(Token = "0x40003A6")]
private EventHandler onExited;
// Token: 0x040003A7 RID: 935
[FieldOffset(Offset = "0xA0")]
[Token(Token = "0x40003A7")]
private bool exited;
// Token: 0x040003A8 RID: 936
[FieldOffset(Offset = "0xA4")]
[Token(Token = "0x40003A8")]
private int exitCode;
// Token: 0x040003A9 RID: 937
[FieldOffset(Offset = "0xA8")]
[Token(Token = "0x40003A9")]
private bool signaled;
// Token: 0x040003AA RID: 938
[FieldOffset(Offset = "0xB0")]
[Token(Token = "0x40003AA")]
private DateTime exitTime;
// Token: 0x040003AB RID: 939
[FieldOffset(Offset = "0xB8")]
[Token(Token = "0x40003AB")]
private bool haveExitTime;
// Token: 0x040003AC RID: 940
[FieldOffset(Offset = "0xB9")]
[Token(Token = "0x40003AC")]
private bool raisedOnExited;
// Token: 0x040003AD RID: 941
[FieldOffset(Offset = "0xC0")]
[Token(Token = "0x40003AD")]
private RegisteredWaitHandle registeredWaitHandle;
// Token: 0x040003AE RID: 942
[FieldOffset(Offset = "0xC8")]
[Token(Token = "0x40003AE")]
private WaitHandle waitHandle;
// Token: 0x040003AF RID: 943
[FieldOffset(Offset = "0xD0")]
[Token(Token = "0x40003AF")]
private ISynchronizeInvoke synchronizingObject;
// Token: 0x040003B0 RID: 944
[FieldOffset(Offset = "0xD8")]
[Token(Token = "0x40003B0")]
private StreamReader standardOutput;
// Token: 0x040003B1 RID: 945
[FieldOffset(Offset = "0xE0")]
[Token(Token = "0x40003B1")]
private StreamWriter standardInput;
// Token: 0x040003B2 RID: 946
[FieldOffset(Offset = "0xE8")]
[Token(Token = "0x40003B2")]
private StreamReader standardError;
// Token: 0x040003B3 RID: 947
[FieldOffset(Offset = "0xF0")]
[Token(Token = "0x40003B3")]
private OperatingSystem operatingSystem;
// Token: 0x040003B4 RID: 948
[FieldOffset(Offset = "0xF8")]
[Token(Token = "0x40003B4")]
private bool disposed;
// Token: 0x040003B5 RID: 949
[FieldOffset(Offset = "0xFC")]
[Token(Token = "0x40003B5")]
private Process.StreamReadMode outputStreamReadMode;
// Token: 0x040003B6 RID: 950
[FieldOffset(Offset = "0x100")]
[Token(Token = "0x40003B6")]
private Process.StreamReadMode errorStreamReadMode;
// Token: 0x040003B7 RID: 951
[FieldOffset(Offset = "0x104")]
[Token(Token = "0x40003B7")]
private Process.StreamReadMode inputStreamReadMode;
// Token: 0x040003B8 RID: 952
[FieldOffset(Offset = "0x108")]
[Token(Token = "0x40003B8")]
[CompilerGenerated]
private DataReceivedEventHandler OutputDataReceived;
// Token: 0x040003B9 RID: 953
[FieldOffset(Offset = "0x110")]
[Token(Token = "0x40003B9")]
[CompilerGenerated]
private DataReceivedEventHandler ErrorDataReceived;
// Token: 0x040003BA RID: 954
[FieldOffset(Offset = "0x118")]
[Token(Token = "0x40003BA")]
internal AsyncStreamReader output;
// Token: 0x040003BB RID: 955
[FieldOffset(Offset = "0x120")]
[Token(Token = "0x40003BB")]
internal AsyncStreamReader error;
// Token: 0x040003BC RID: 956
[FieldOffset(Offset = "0x128")]
[Token(Token = "0x40003BC")]
internal bool pendingOutputRead;
// Token: 0x040003BD RID: 957
[FieldOffset(Offset = "0x129")]
[Token(Token = "0x40003BD")]
internal bool pendingErrorRead;
// Token: 0x040003BE RID: 958
[Token(Token = "0x40003BE")]
internal static TraceSwitch processTracing;
// Token: 0x040003BF RID: 959
[FieldOffset(Offset = "0x130")]
[Token(Token = "0x40003BF")]
private string process_name;
// Token: 0x040003C0 RID: 960
[Token(Token = "0x40003C0")]
private static ProcessModule current_main_module;
// Token: 0x020000C6 RID: 198
[Token(Token = "0x20000C6")]
private enum StreamReadMode
{
// Token: 0x040003C2 RID: 962
[Token(Token = "0x40003C2")]
undefined,
// Token: 0x040003C3 RID: 963
[Token(Token = "0x40003C3")]
syncMode,
// Token: 0x040003C4 RID: 964
[Token(Token = "0x40003C4")]
asyncMode
}
// Token: 0x020000C7 RID: 199
[Token(Token = "0x20000C7")]
private enum State
{
// Token: 0x040003C6 RID: 966
[Token(Token = "0x40003C6")]
HaveId = 1,
// Token: 0x040003C7 RID: 967
[Token(Token = "0x40003C7")]
IsLocal,
// Token: 0x040003C8 RID: 968
[Token(Token = "0x40003C8")]
IsNt = 4,
// Token: 0x040003C9 RID: 969
[Token(Token = "0x40003C9")]
HaveProcessInfo = 8,
// Token: 0x040003CA RID: 970
[Token(Token = "0x40003CA")]
Exited = 16,
// Token: 0x040003CB RID: 971
[Token(Token = "0x40003CB")]
Associated = 32,
// Token: 0x040003CC RID: 972
[Token(Token = "0x40003CC")]
IsWin2k = 64,
// Token: 0x040003CD RID: 973
[Token(Token = "0x40003CD")]
HaveNtProcessInfo = 12
}
// Token: 0x020000C8 RID: 200
[Token(Token = "0x20000C8")]
private struct ProcInfo
{
// Token: 0x040003CE RID: 974
[FieldOffset(Offset = "0x0")]
[Token(Token = "0x40003CE")]
public IntPtr process_handle;
// Token: 0x040003CF RID: 975
[FieldOffset(Offset = "0x8")]
[Token(Token = "0x40003CF")]
public int pid;
// Token: 0x040003D0 RID: 976
[FieldOffset(Offset = "0x10")]
[Token(Token = "0x40003D0")]
public string[] envVariables;
// Token: 0x040003D1 RID: 977
[FieldOffset(Offset = "0x18")]
[Token(Token = "0x40003D1")]
public string UserName;
// Token: 0x040003D2 RID: 978
[FieldOffset(Offset = "0x20")]
[Token(Token = "0x40003D2")]
public string Domain;
// Token: 0x040003D3 RID: 979
[FieldOffset(Offset = "0x28")]
[Token(Token = "0x40003D3")]
public IntPtr Password;
// Token: 0x040003D4 RID: 980
[FieldOffset(Offset = "0x30")]
[Token(Token = "0x40003D4")]
public bool LoadUserProfile;
}
}
}