This commit is contained in:
niko
2026-06-04 11:42:34 +02:00
parent f39ba70a9f
commit e720b98cd1
7488 changed files with 2493818 additions and 0 deletions
+527
View File
@@ -0,0 +1,527 @@
using System;
using System.Collections;
using System.Collections.Specialized;
using System.ComponentModel;
using System.IO;
using System.Security;
using System.Text;
namespace System.Diagnostics
{
/// <summary>Specifies a set of values that are used when you start a process.</summary>
/// <filterpriority>2</filterpriority>
// Token: 0x020000ED RID: 237
[global::System.ComponentModel.TypeConverter(typeof(global::System.ComponentModel.ExpandableObjectConverter))]
public sealed class ProcessStartInfo
{
/// <summary>Initializes a new instance of the <see cref="T:System.Diagnostics.ProcessStartInfo" /> class without specifying a file name with which to start the process.</summary>
// Token: 0x06000848 RID: 2120 RVA: 0x000166E0 File Offset: 0x000148E0
public ProcessStartInfo()
{
}
/// <summary>Initializes a new instance of the <see cref="T:System.Diagnostics.ProcessStartInfo" /> class and specifies a file name such as an application or document with which to start the process.</summary>
/// <param name="fileName">An application or document with which to start a process. </param>
// Token: 0x06000849 RID: 2121 RVA: 0x00016734 File Offset: 0x00014934
public ProcessStartInfo(string filename)
{
this.filename = filename;
}
/// <summary>Initializes a new instance of the <see cref="T:System.Diagnostics.ProcessStartInfo" /> class, specifies an application file name with which to start the process, and specifies a set of command-line arguments to pass to the application.</summary>
/// <param name="fileName">An application with which to start a process. </param>
/// <param name="arguments">Command-line arguments to pass to the application when the process starts. </param>
// Token: 0x0600084A RID: 2122 RVA: 0x00016790 File Offset: 0x00014990
public ProcessStartInfo(string filename, string arguments)
{
this.filename = filename;
this.arguments = arguments;
}
/// <summary>Gets or sets the set of command-line arguments to use when starting the application.</summary>
/// <returns>File typespecific arguments that the system can associate with the application specified in the <see cref="P:System.Diagnostics.ProcessStartInfo.FileName" /> property. The length of the arguments added to the length of the full path to the process must be less than 2080.</returns>
/// <filterpriority>1</filterpriority>
// Token: 0x1700021F RID: 543
// (get) Token: 0x0600084C RID: 2124 RVA: 0x00016800 File Offset: 0x00014A00
// (set) Token: 0x0600084D RID: 2125 RVA: 0x00016808 File Offset: 0x00014A08
[global::System.ComponentModel.DefaultValue("")]
[global::System.ComponentModel.NotifyParentProperty(true)]
[MonitoringDescription("Command line agruments for this process.")]
[global::System.ComponentModel.TypeConverter("System.Diagnostics.Design.StringValueConverter, System.Design, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a")]
[global::System.ComponentModel.RecommendedAsConfigurable(true)]
public string Arguments
{
get
{
return this.arguments;
}
set
{
this.arguments = value;
}
}
/// <summary>Gets or sets a value indicating whether to start the process in a new window.</summary>
/// <returns>true to start the process without creating a new window to contain it; otherwise, false. The default is false.</returns>
/// <filterpriority>2</filterpriority>
// Token: 0x17000220 RID: 544
// (get) Token: 0x0600084E RID: 2126 RVA: 0x00016814 File Offset: 0x00014A14
// (set) Token: 0x0600084F RID: 2127 RVA: 0x0001681C File Offset: 0x00014A1C
[global::System.ComponentModel.DefaultValue(false)]
[MonitoringDescription("Start this process with a new window.")]
[global::System.ComponentModel.NotifyParentProperty(true)]
public bool CreateNoWindow
{
get
{
return this.create_no_window;
}
set
{
this.create_no_window = value;
}
}
/// <summary>Gets search paths for files, directories for temporary files, application-specific options, and other similar information.</summary>
/// <returns>A <see cref="T:System.Collections.Specialized.StringDictionary" /> that provides environment variables that apply to this process and child processes. The default is null.</returns>
/// <filterpriority>1</filterpriority>
// Token: 0x17000221 RID: 545
// (get) Token: 0x06000850 RID: 2128 RVA: 0x00016828 File Offset: 0x00014A28
[global::System.ComponentModel.DesignerSerializationVisibility(global::System.ComponentModel.DesignerSerializationVisibility.Content)]
[global::System.ComponentModel.DefaultValue(null)]
[global::System.ComponentModel.Editor("System.Diagnostics.Design.StringDictionaryEditor, System.Design, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a", "System.Drawing.Design.UITypeEditor, System.Drawing, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a")]
[MonitoringDescription("Environment variables used for this process.")]
[global::System.ComponentModel.NotifyParentProperty(true)]
public global::System.Collections.Specialized.StringDictionary EnvironmentVariables
{
get
{
if (this.envVars == null)
{
this.envVars = new global::System.Collections.Specialized.ProcessStringDictionary();
foreach (object obj in Environment.GetEnvironmentVariables())
{
DictionaryEntry dictionaryEntry = (DictionaryEntry)obj;
this.envVars.Add((string)dictionaryEntry.Key, (string)dictionaryEntry.Value);
}
}
return this.envVars;
}
}
// Token: 0x17000222 RID: 546
// (get) Token: 0x06000851 RID: 2129 RVA: 0x000168D0 File Offset: 0x00014AD0
internal bool HaveEnvVars
{
get
{
return this.envVars != null;
}
}
/// <summary>Gets or sets a value indicating whether an error dialog box is displayed to the user if the process cannot be started.</summary>
/// <returns>true to display an error dialog box on the screen if the process cannot be started; otherwise, false.</returns>
/// <filterpriority>2</filterpriority>
// Token: 0x17000223 RID: 547
// (get) Token: 0x06000852 RID: 2130 RVA: 0x000168E0 File Offset: 0x00014AE0
// (set) Token: 0x06000853 RID: 2131 RVA: 0x000168E8 File Offset: 0x00014AE8
[global::System.ComponentModel.NotifyParentProperty(true)]
[MonitoringDescription("Thread shows dialogboxes for errors.")]
[global::System.ComponentModel.DefaultValue(false)]
public bool ErrorDialog
{
get
{
return this.error_dialog;
}
set
{
this.error_dialog = value;
}
}
/// <summary>Gets or sets the window handle to use when an error dialog box is shown for a process that cannot be started.</summary>
/// <returns>An <see cref="T:System.IntPtr" /> that identifies the handle of the error dialog box that results from a process start failure.</returns>
/// <filterpriority>2</filterpriority>
// Token: 0x17000224 RID: 548
// (get) Token: 0x06000854 RID: 2132 RVA: 0x000168F4 File Offset: 0x00014AF4
// (set) Token: 0x06000855 RID: 2133 RVA: 0x000168FC File Offset: 0x00014AFC
[global::System.ComponentModel.DesignerSerializationVisibility(global::System.ComponentModel.DesignerSerializationVisibility.Hidden)]
[global::System.ComponentModel.Browsable(false)]
public IntPtr ErrorDialogParentHandle
{
get
{
return this.error_dialog_parent_handle;
}
set
{
this.error_dialog_parent_handle = value;
}
}
/// <summary>Gets or sets the application or document to start.</summary>
/// <returns>The name of the application to start, or the name of a document of a file type that is associated with an application and that has a default open action available to it. The default is an empty string ("").</returns>
/// <filterpriority>1</filterpriority>
// Token: 0x17000225 RID: 549
// (get) Token: 0x06000856 RID: 2134 RVA: 0x00016908 File Offset: 0x00014B08
// (set) Token: 0x06000857 RID: 2135 RVA: 0x00016910 File Offset: 0x00014B10
[global::System.ComponentModel.RecommendedAsConfigurable(true)]
[global::System.ComponentModel.NotifyParentProperty(true)]
[MonitoringDescription("The name of the resource to start this process.")]
[global::System.ComponentModel.TypeConverter("System.Diagnostics.Design.StringValueConverter, System.Design, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a")]
[global::System.ComponentModel.Editor("System.Diagnostics.Design.StartFileNameEditor, System.Design, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a", "System.Drawing.Design.UITypeEditor, System.Drawing, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a")]
[global::System.ComponentModel.DefaultValue("")]
public string FileName
{
get
{
return this.filename;
}
set
{
this.filename = value;
}
}
/// <summary>Gets or sets a value that indicates whether the error output of an application is written to the <see cref="P:System.Diagnostics.Process.StandardError" /> stream.</summary>
/// <returns>true to write error output to <see cref="P:System.Diagnostics.Process.StandardError" />; otherwise, false.</returns>
/// <filterpriority>2</filterpriority>
// Token: 0x17000226 RID: 550
// (get) Token: 0x06000858 RID: 2136 RVA: 0x0001691C File Offset: 0x00014B1C
// (set) Token: 0x06000859 RID: 2137 RVA: 0x00016924 File Offset: 0x00014B24
[global::System.ComponentModel.NotifyParentProperty(true)]
[global::System.ComponentModel.DefaultValue(false)]
[MonitoringDescription("Errors of this process are redirected.")]
public bool RedirectStandardError
{
get
{
return this.redirect_standard_error;
}
set
{
this.redirect_standard_error = value;
}
}
/// <summary>Gets or sets a value indicating whether the input for an application is read from the <see cref="P:System.Diagnostics.Process.StandardInput" /> stream.</summary>
/// <returns>true to read input from <see cref="P:System.Diagnostics.Process.StandardInput" />; otherwise, false.</returns>
/// <filterpriority>2</filterpriority>
// Token: 0x17000227 RID: 551
// (get) Token: 0x0600085A RID: 2138 RVA: 0x00016930 File Offset: 0x00014B30
// (set) Token: 0x0600085B RID: 2139 RVA: 0x00016938 File Offset: 0x00014B38
[MonitoringDescription("Standard input of this process is redirected.")]
[global::System.ComponentModel.DefaultValue(false)]
[global::System.ComponentModel.NotifyParentProperty(true)]
public bool RedirectStandardInput
{
get
{
return this.redirect_standard_input;
}
set
{
this.redirect_standard_input = value;
}
}
/// <summary>Gets or sets a value that indicates whether the output of an application is written to the <see cref="P:System.Diagnostics.Process.StandardOutput" /> stream.</summary>
/// <returns>true to write output to <see cref="P:System.Diagnostics.Process.StandardOutput" />; otherwise, false.</returns>
/// <filterpriority>2</filterpriority>
// Token: 0x17000228 RID: 552
// (get) Token: 0x0600085C RID: 2140 RVA: 0x00016944 File Offset: 0x00014B44
// (set) Token: 0x0600085D RID: 2141 RVA: 0x0001694C File Offset: 0x00014B4C
[global::System.ComponentModel.DefaultValue(false)]
[global::System.ComponentModel.NotifyParentProperty(true)]
[MonitoringDescription("Standart output of this process is redirected.")]
public bool RedirectStandardOutput
{
get
{
return this.redirect_standard_output;
}
set
{
this.redirect_standard_output = value;
}
}
/// <summary>Gets or sets the preferred encoding for error output.</summary>
/// <returns>An <see cref="T:System.Text.Encoding" /> object that represents the preferred encoding for error output. The default is null.</returns>
// Token: 0x17000229 RID: 553
// (get) Token: 0x0600085E RID: 2142 RVA: 0x00016958 File Offset: 0x00014B58
// (set) Token: 0x0600085F RID: 2143 RVA: 0x00016960 File Offset: 0x00014B60
public Encoding StandardErrorEncoding
{
get
{
return this.encoding_stderr;
}
set
{
this.encoding_stderr = value;
}
}
/// <summary>Gets or sets the preferred encoding for standard output.</summary>
/// <returns>An <see cref="T:System.Text.Encoding" /> object that represents the preferred encoding for standard output. The default is null.</returns>
// Token: 0x1700022A RID: 554
// (get) Token: 0x06000860 RID: 2144 RVA: 0x0001696C File Offset: 0x00014B6C
// (set) Token: 0x06000861 RID: 2145 RVA: 0x00016974 File Offset: 0x00014B74
public Encoding StandardOutputEncoding
{
get
{
return this.encoding_stdout;
}
set
{
this.encoding_stdout = value;
}
}
/// <summary>Gets or sets a value indicating whether to use the operating system shell to start the process.</summary>
/// <returns>true to use the shell when starting the process; otherwise, the process is created directly from the executable file. The default is true.</returns>
/// <filterpriority>2</filterpriority>
// Token: 0x1700022B RID: 555
// (get) Token: 0x06000862 RID: 2146 RVA: 0x00016980 File Offset: 0x00014B80
// (set) Token: 0x06000863 RID: 2147 RVA: 0x00016988 File Offset: 0x00014B88
[MonitoringDescription("Use the shell to start this process.")]
[global::System.ComponentModel.NotifyParentProperty(true)]
[global::System.ComponentModel.DefaultValue(true)]
public bool UseShellExecute
{
get
{
return this.use_shell_execute;
}
set
{
this.use_shell_execute = value;
}
}
/// <summary>Gets or sets the verb to use when opening the application or document specified by the <see cref="P:System.Diagnostics.ProcessStartInfo.FileName" /> property.</summary>
/// <returns>The action to take with the file that the process opens. The default is an empty string ("").</returns>
/// <filterpriority>2</filterpriority>
// Token: 0x1700022C RID: 556
// (get) Token: 0x06000864 RID: 2148 RVA: 0x00016994 File Offset: 0x00014B94
// (set) Token: 0x06000865 RID: 2149 RVA: 0x0001699C File Offset: 0x00014B9C
[global::System.ComponentModel.TypeConverter("System.Diagnostics.Design.VerbConverter, System.Design, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a")]
[global::System.ComponentModel.DefaultValue("")]
[global::System.ComponentModel.NotifyParentProperty(true)]
[MonitoringDescription("The verb to apply to a used document.")]
public string Verb
{
get
{
return this.verb;
}
set
{
this.verb = value;
}
}
/// <summary>Gets the set of verbs associated with the type of file specified by the <see cref="P:System.Diagnostics.ProcessStartInfo.FileName" /> property.</summary>
/// <returns>The actions that the system can apply to the file indicated by the <see cref="P:System.Diagnostics.ProcessStartInfo.FileName" /> property.</returns>
/// <filterpriority>2</filterpriority>
// Token: 0x1700022D RID: 557
// (get) Token: 0x06000866 RID: 2150 RVA: 0x000169A8 File Offset: 0x00014BA8
[global::System.ComponentModel.DesignerSerializationVisibility(global::System.ComponentModel.DesignerSerializationVisibility.Hidden)]
[global::System.ComponentModel.Browsable(false)]
public string[] Verbs
{
get
{
if (((!((this.filename == null) | (this.filename.Length == 0))) ? Path.GetExtension(this.filename) : null) == null)
{
return ProcessStartInfo.empty;
}
return ProcessStartInfo.empty;
}
}
/// <summary>Gets or sets the window state to use when the process is started.</summary>
/// <returns>A <see cref="T:System.Diagnostics.ProcessWindowStyle" /> that indicates whether the process is started in a window that is maximized, minimized, normal (neither maximized nor minimized), or not visible. The default is normal.</returns>
/// <exception cref="T:System.ComponentModel.InvalidEnumArgumentException">The window style is not one of the <see cref="T:System.Diagnostics.ProcessWindowStyle" /> enumeration members. </exception>
/// <filterpriority>2</filterpriority>
// Token: 0x1700022E RID: 558
// (get) Token: 0x06000867 RID: 2151 RVA: 0x000169F8 File Offset: 0x00014BF8
// (set) Token: 0x06000868 RID: 2152 RVA: 0x00016A00 File Offset: 0x00014C00
[global::System.ComponentModel.DefaultValue(typeof(ProcessWindowStyle), "Normal")]
[global::System.ComponentModel.NotifyParentProperty(true)]
[MonitoringDescription("The window style used to start this process.")]
public ProcessWindowStyle WindowStyle
{
get
{
return this.window_style;
}
set
{
this.window_style = value;
}
}
/// <summary>Gets or sets the initial directory for the process to be started.</summary>
/// <returns>The fully qualified name of the directory that contains the process to be started. The default is an empty string ("").</returns>
/// <filterpriority>1</filterpriority>
// Token: 0x1700022F RID: 559
// (get) Token: 0x06000869 RID: 2153 RVA: 0x00016A0C File Offset: 0x00014C0C
// (set) Token: 0x0600086A RID: 2154 RVA: 0x00016A14 File Offset: 0x00014C14
[global::System.ComponentModel.TypeConverter("System.Diagnostics.Design.StringValueConverter, System.Design, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a")]
[global::System.ComponentModel.DefaultValue("")]
[MonitoringDescription("The initial directory for this process.")]
[global::System.ComponentModel.RecommendedAsConfigurable(true)]
[global::System.ComponentModel.Editor("System.Diagnostics.Design.WorkingDirectoryEditor, System.Design, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a", "System.Drawing.Design.UITypeEditor, System.Drawing, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a")]
[global::System.ComponentModel.NotifyParentProperty(true)]
public string WorkingDirectory
{
get
{
return this.working_directory;
}
set
{
this.working_directory = ((value != null) ? value : string.Empty);
}
}
/// <summary>Gets or sets a value that indicates whether the Windows user profile is to be loaded from the registry. </summary>
/// <returns>true to load the Windows user profile; otherwise, false. </returns>
/// <filterpriority>1</filterpriority>
// Token: 0x17000230 RID: 560
// (get) Token: 0x0600086B RID: 2155 RVA: 0x00016A30 File Offset: 0x00014C30
// (set) Token: 0x0600086C RID: 2156 RVA: 0x00016A38 File Offset: 0x00014C38
[global::System.ComponentModel.NotifyParentProperty(true)]
public bool LoadUserProfile
{
get
{
return this.load_user_profile;
}
set
{
this.load_user_profile = value;
}
}
/// <summary>Gets or sets the user name to be used when starting the process.</summary>
/// <returns>The user name to use when starting the process.</returns>
/// <filterpriority>1</filterpriority>
// Token: 0x17000231 RID: 561
// (get) Token: 0x0600086D RID: 2157 RVA: 0x00016A44 File Offset: 0x00014C44
// (set) Token: 0x0600086E RID: 2158 RVA: 0x00016A4C File Offset: 0x00014C4C
[global::System.ComponentModel.NotifyParentProperty(true)]
public string UserName
{
get
{
return this.username;
}
set
{
this.username = value;
}
}
/// <summary>Gets or sets a value that identifies the domain to use when starting the process. </summary>
/// <returns>The Active Directory domain to use when starting the process. The domain property is primarily of interest to users within enterprise environments that use Active Directory.</returns>
/// <filterpriority>1</filterpriority>
// Token: 0x17000232 RID: 562
// (get) Token: 0x0600086F RID: 2159 RVA: 0x00016A58 File Offset: 0x00014C58
// (set) Token: 0x06000870 RID: 2160 RVA: 0x00016A60 File Offset: 0x00014C60
[global::System.ComponentModel.NotifyParentProperty(true)]
public string Domain
{
get
{
return this.domain;
}
set
{
this.domain = value;
}
}
/// <summary>Gets or sets a secure string that contains the user password to use when starting the process.</summary>
/// <returns>A <see cref="T:System.Security.SecureString" /> that contains the user password to use when starting the process.</returns>
/// <filterpriority>1</filterpriority>
// Token: 0x17000233 RID: 563
// (get) Token: 0x06000871 RID: 2161 RVA: 0x00016A6C File Offset: 0x00014C6C
// (set) Token: 0x06000872 RID: 2162 RVA: 0x00016A74 File Offset: 0x00014C74
public SecureString Password
{
get
{
return this.password;
}
set
{
this.password = value;
}
}
// Token: 0x04000292 RID: 658
private string arguments = string.Empty;
// Token: 0x04000293 RID: 659
private IntPtr error_dialog_parent_handle = (IntPtr)0;
// Token: 0x04000294 RID: 660
private string filename = string.Empty;
// Token: 0x04000295 RID: 661
private string verb = string.Empty;
// Token: 0x04000296 RID: 662
private string working_directory = string.Empty;
// Token: 0x04000297 RID: 663
private global::System.Collections.Specialized.ProcessStringDictionary envVars;
// Token: 0x04000298 RID: 664
private bool create_no_window;
// Token: 0x04000299 RID: 665
private bool error_dialog;
// Token: 0x0400029A RID: 666
private bool redirect_standard_error;
// Token: 0x0400029B RID: 667
private bool redirect_standard_input;
// Token: 0x0400029C RID: 668
private bool redirect_standard_output;
// Token: 0x0400029D RID: 669
private bool use_shell_execute = true;
// Token: 0x0400029E RID: 670
private ProcessWindowStyle window_style;
// Token: 0x0400029F RID: 671
private Encoding encoding_stderr;
// Token: 0x040002A0 RID: 672
private Encoding encoding_stdout;
// Token: 0x040002A1 RID: 673
private string username;
// Token: 0x040002A2 RID: 674
private string domain;
// Token: 0x040002A3 RID: 675
private SecureString password;
// Token: 0x040002A4 RID: 676
private bool load_user_profile;
// Token: 0x040002A5 RID: 677
private static readonly string[] empty = new string[0];
}
}