/src/System.Diagnostics.Process/ref/4.0/System.Diagnostics.Process.cs

https://gitlab.com/0072016/0072016-corefx- · C# · 204 lines · 197 code · 1 blank · 6 comment · 0 complexity · 89fca8dd4c07654dfc80a5824a869c2d MD5 · raw file

  1. // Licensed to the .NET Foundation under one or more agreements.
  2. // The .NET Foundation licenses this file to you under the MIT license.
  3. // See the LICENSE file in the project root for more information.
  4. // ------------------------------------------------------------------------------
  5. // Changes to this file must follow the http://aka.ms/api-review process.
  6. // ------------------------------------------------------------------------------
  7. namespace Microsoft.Win32.SafeHandles
  8. {
  9. public sealed partial class SafeProcessHandle : System.Runtime.InteropServices.SafeHandle
  10. {
  11. public SafeProcessHandle(System.IntPtr existingHandle, bool ownsHandle) : base(default(System.IntPtr), default(bool)) { }
  12. protected override bool ReleaseHandle() { return default(bool); }
  13. }
  14. }
  15. namespace System.Diagnostics
  16. {
  17. public partial class DataReceivedEventArgs : System.EventArgs
  18. {
  19. internal DataReceivedEventArgs() { }
  20. public string Data { get { return default(string); } }
  21. }
  22. public delegate void DataReceivedEventHandler(object sender, System.Diagnostics.DataReceivedEventArgs e);
  23. public partial class Process
  24. {
  25. public Process() { }
  26. public int BasePriority { get { return default(int); } }
  27. [System.ComponentModel.DefaultValueAttribute(false)]
  28. public bool EnableRaisingEvents { get { return default(bool); } set { } }
  29. public int ExitCode { get { return default(int); } }
  30. public System.DateTime ExitTime { get { return default(System.DateTime); } }
  31. public bool HasExited { get { return default(bool); } }
  32. public int Id { get { return default(int); } }
  33. public string MachineName { get { return default(string); } }
  34. public System.Diagnostics.ProcessModule MainModule { get { return default(System.Diagnostics.ProcessModule); } }
  35. public System.IntPtr MaxWorkingSet { get { return default(System.IntPtr); } set { } }
  36. public System.IntPtr MinWorkingSet { get { return default(System.IntPtr); } set { } }
  37. public System.Diagnostics.ProcessModuleCollection Modules { get { return default(System.Diagnostics.ProcessModuleCollection); } }
  38. public long NonpagedSystemMemorySize64 { get { return default(long); } }
  39. public long PagedMemorySize64 { get { return default(long); } }
  40. public long PagedSystemMemorySize64 { get { return default(long); } }
  41. public long PeakPagedMemorySize64 { get { return default(long); } }
  42. public long PeakVirtualMemorySize64 { get { return default(long); } }
  43. public long PeakWorkingSet64 { get { return default(long); } }
  44. public bool PriorityBoostEnabled { get { return default(bool); } set { } }
  45. public System.Diagnostics.ProcessPriorityClass PriorityClass { get { return default(System.Diagnostics.ProcessPriorityClass); } set { } }
  46. public long PrivateMemorySize64 { get { return default(long); } }
  47. public System.TimeSpan PrivilegedProcessorTime { get { return default(System.TimeSpan); } }
  48. public string ProcessName { get { return default(string); } }
  49. public System.IntPtr ProcessorAffinity { get { return default(System.IntPtr); } set { } }
  50. public Microsoft.Win32.SafeHandles.SafeProcessHandle SafeHandle { get { return default(Microsoft.Win32.SafeHandles.SafeProcessHandle); } }
  51. public int SessionId { get { return default(int); } }
  52. public System.IO.StreamReader StandardError { get { return default(System.IO.StreamReader); } }
  53. public System.IO.StreamWriter StandardInput { get { return default(System.IO.StreamWriter); } }
  54. public System.IO.StreamReader StandardOutput { get { return default(System.IO.StreamReader); } }
  55. public System.Diagnostics.ProcessStartInfo StartInfo { get { return default(System.Diagnostics.ProcessStartInfo); } set { } }
  56. public System.DateTime StartTime { get { return default(System.DateTime); } }
  57. public System.Diagnostics.ProcessThreadCollection Threads { get { return default(System.Diagnostics.ProcessThreadCollection); } }
  58. public System.TimeSpan TotalProcessorTime { get { return default(System.TimeSpan); } }
  59. public System.TimeSpan UserProcessorTime { get { return default(System.TimeSpan); } }
  60. public long VirtualMemorySize64 { get { return default(long); } }
  61. public long WorkingSet64 { get { return default(long); } }
  62. public event System.Diagnostics.DataReceivedEventHandler ErrorDataReceived { add { } remove { } }
  63. public event System.EventHandler Exited { add { } remove { } }
  64. public event System.Diagnostics.DataReceivedEventHandler OutputDataReceived { add { } remove { } }
  65. public void BeginErrorReadLine() { }
  66. public void BeginOutputReadLine() { }
  67. public void CancelErrorRead() { }
  68. public void CancelOutputRead() { }
  69. public static void EnterDebugMode() { }
  70. public static System.Diagnostics.Process GetCurrentProcess() { return default(System.Diagnostics.Process); }
  71. public static System.Diagnostics.Process GetProcessById(int processId) { return default(System.Diagnostics.Process); }
  72. public static System.Diagnostics.Process GetProcessById(int processId, string machineName) { return default(System.Diagnostics.Process); }
  73. public static System.Diagnostics.Process[] GetProcesses() { return default(System.Diagnostics.Process[]); }
  74. public static System.Diagnostics.Process[] GetProcesses(string machineName) { return default(System.Diagnostics.Process[]); }
  75. public static System.Diagnostics.Process[] GetProcessesByName(string processName) { return default(System.Diagnostics.Process[]); }
  76. public static System.Diagnostics.Process[] GetProcessesByName(string processName, string machineName) { return default(System.Diagnostics.Process[]); }
  77. public void Kill() { }
  78. public static void LeaveDebugMode() { }
  79. protected void OnExited() { }
  80. public void Refresh() { }
  81. public bool Start() { return default(bool); }
  82. public static System.Diagnostics.Process Start(System.Diagnostics.ProcessStartInfo startInfo) { return default(System.Diagnostics.Process); }
  83. public static System.Diagnostics.Process Start(string fileName) { return default(System.Diagnostics.Process); }
  84. public static System.Diagnostics.Process Start(string fileName, string arguments) { return default(System.Diagnostics.Process); }
  85. public void WaitForExit() { }
  86. public bool WaitForExit(int milliseconds) { return default(bool); }
  87. }
  88. public partial class ProcessModule
  89. {
  90. internal ProcessModule() { }
  91. public System.IntPtr BaseAddress { get { return default(System.IntPtr); } }
  92. public System.IntPtr EntryPointAddress { get { return default(System.IntPtr); } }
  93. public string FileName { get { return default(string); } }
  94. public int ModuleMemorySize { get { return default(int); } }
  95. public string ModuleName { get { return default(string); } }
  96. public override string ToString() { return default(string); }
  97. }
  98. public partial class ProcessModuleCollection
  99. {
  100. protected ProcessModuleCollection() { }
  101. public ProcessModuleCollection(System.Diagnostics.ProcessModule[] processModules) { }
  102. public System.Diagnostics.ProcessModule this[int index] { get { return default(System.Diagnostics.ProcessModule); } }
  103. public bool Contains(System.Diagnostics.ProcessModule module) { return default(bool); }
  104. public void CopyTo(System.Diagnostics.ProcessModule[] array, int index) { }
  105. public int IndexOf(System.Diagnostics.ProcessModule module) { return default(int); }
  106. }
  107. public enum ProcessPriorityClass
  108. {
  109. AboveNormal = 32768,
  110. BelowNormal = 16384,
  111. High = 128,
  112. Idle = 64,
  113. Normal = 32,
  114. RealTime = 256,
  115. }
  116. public sealed partial class ProcessStartInfo
  117. {
  118. public ProcessStartInfo() { }
  119. public ProcessStartInfo(string fileName) { }
  120. public ProcessStartInfo(string fileName, string arguments) { }
  121. public string Arguments { get { return default(string); } set { } }
  122. public bool CreateNoWindow { get { return default(bool); } set { } }
  123. [System.ComponentModel.DefaultValueAttribute(null)]
  124. public System.Collections.Generic.IDictionary<string, string> Environment { get { return default(System.Collections.Generic.IDictionary<string, string>); } }
  125. public string FileName { get { return default(string); } set { } }
  126. public bool RedirectStandardError { get { return default(bool); } set { } }
  127. public bool RedirectStandardInput { get { return default(bool); } set { } }
  128. public bool RedirectStandardOutput { get { return default(bool); } set { } }
  129. public System.Text.Encoding StandardErrorEncoding { get { return default(System.Text.Encoding); } set { } }
  130. public System.Text.Encoding StandardOutputEncoding { get { return default(System.Text.Encoding); } set { } }
  131. public bool UseShellExecute { get { return default(bool); } set { } }
  132. public string WorkingDirectory { get { return default(string); } set { } }
  133. }
  134. public partial class ProcessThread
  135. {
  136. internal ProcessThread() { }
  137. public int BasePriority { get { return default(int); } }
  138. public int CurrentPriority { get { return default(int); } }
  139. public int Id { get { return default(int); } }
  140. public int IdealProcessor { set { } }
  141. public bool PriorityBoostEnabled { get { return default(bool); } set { } }
  142. public System.Diagnostics.ThreadPriorityLevel PriorityLevel { get { return default(System.Diagnostics.ThreadPriorityLevel); } set { } }
  143. public System.TimeSpan PrivilegedProcessorTime { get { return default(System.TimeSpan); } }
  144. public System.IntPtr ProcessorAffinity { set { } }
  145. public System.IntPtr StartAddress { get { return default(System.IntPtr); } }
  146. public System.DateTime StartTime { get { return default(System.DateTime); } }
  147. public System.Diagnostics.ThreadState ThreadState { get { return default(System.Diagnostics.ThreadState); } }
  148. public System.TimeSpan TotalProcessorTime { get { return default(System.TimeSpan); } }
  149. public System.TimeSpan UserProcessorTime { get { return default(System.TimeSpan); } }
  150. public System.Diagnostics.ThreadWaitReason WaitReason { get { return default(System.Diagnostics.ThreadWaitReason); } }
  151. public void ResetIdealProcessor() { }
  152. }
  153. public partial class ProcessThreadCollection
  154. {
  155. protected ProcessThreadCollection() { }
  156. public ProcessThreadCollection(System.Diagnostics.ProcessThread[] processThreads) { }
  157. public System.Diagnostics.ProcessThread this[int index] { get { return default(System.Diagnostics.ProcessThread); } }
  158. public int Add(System.Diagnostics.ProcessThread thread) { return default(int); }
  159. public bool Contains(System.Diagnostics.ProcessThread thread) { return default(bool); }
  160. public void CopyTo(System.Diagnostics.ProcessThread[] array, int index) { }
  161. public int IndexOf(System.Diagnostics.ProcessThread thread) { return default(int); }
  162. public void Insert(int index, System.Diagnostics.ProcessThread thread) { }
  163. public void Remove(System.Diagnostics.ProcessThread thread) { }
  164. }
  165. public enum ThreadPriorityLevel
  166. {
  167. AboveNormal = 1,
  168. BelowNormal = -1,
  169. Highest = 2,
  170. Idle = -15,
  171. Lowest = -2,
  172. Normal = 0,
  173. TimeCritical = 15,
  174. }
  175. public enum ThreadState
  176. {
  177. Initialized = 0,
  178. Ready = 1,
  179. Running = 2,
  180. Standby = 3,
  181. Terminated = 4,
  182. Transition = 6,
  183. Unknown = 7,
  184. Wait = 5,
  185. }
  186. public enum ThreadWaitReason
  187. {
  188. EventPairHigh = 7,
  189. EventPairLow = 8,
  190. ExecutionDelay = 4,
  191. Executive = 0,
  192. FreePage = 1,
  193. LpcReceive = 9,
  194. LpcReply = 10,
  195. PageIn = 2,
  196. PageOut = 12,
  197. Suspended = 5,
  198. SystemAllocation = 3,
  199. Unknown = 13,
  200. UserRequest = 6,
  201. VirtualMemory = 11,
  202. }
  203. }