4 instantiations of SafeProcessHandle
PresentationCore (1)
MS\Internal\DpiUtil\DpiUtil+ProcessDpiAwarenessHelper.cs (1)
103using (var hProcess = new SafeProcessHandle(UnsafeNativeMethods.OpenProcess(NativeMethods.PROCESS_ALL_ACCESS, false, windowThreadProcessId), true))
System.Diagnostics.Process (3)
Microsoft\Win32\SafeHandles\SafeProcessHandle.cs (1)
28internal static readonly SafeProcessHandle InvalidHandle = new SafeProcessHandle();
Microsoft\Win32\SafeHandles\SafeProcessHandle.Unix.cs (1)
368return new SafeProcessHandle(waitStateHolder!);
System\Diagnostics\Process.Unix.cs (1)
358return new SafeProcessHandle(_waitStateHolder!.IncrementRefCount());
31 references to SafeProcessHandle
Microsoft.CodeAnalysis.Remote.Workspaces (2)
BrokeredServiceConnection.cs (2)
50private readonly SafeProcessHandle? _remoteProcessHandle; 415public static extern bool GetExitCodeProcess(SafeProcessHandle processHandle, out int exitCode);
netstandard (1)
netstandard.cs (1)
13[assembly: System.Runtime.CompilerServices.TypeForwardedTo(typeof(Microsoft.Win32.SafeHandles.SafeProcessHandle))]
PresentationCore (1)
MS\Internal\DpiUtil\DpiUtil+ProcessDpiAwarenessHelper.cs (1)
103using (var hProcess = new SafeProcessHandle(UnsafeNativeMethods.OpenProcess(NativeMethods.PROCESS_ALL_ACCESS, false, windowThreadProcessId), true))
System (1)
src\libraries\shims\System\ref\System.cs (1)
9[assembly: System.Runtime.CompilerServices.TypeForwardedTo(typeof(Microsoft.Win32.SafeHandles.SafeProcessHandle))]
System.Diagnostics.Process (26)
Microsoft\Win32\SafeHandles\SafeProcessHandle.cs (5)
28internal static readonly SafeProcessHandle InvalidHandle = new SafeProcessHandle(); 63/// <returns>A <see cref="SafeProcessHandle"/> representing the started process.</returns> 72public static SafeProcessHandle Start(ProcessStartInfo startInfo) 82internal static SafeProcessHandle Start(ProcessStartInfo startInfo, bool fallbackToNull) 343var (handle, tcs) = ((SafeProcessHandle, TaskCompletionSource<bool>))state!;
Microsoft\Win32\SafeHandles\SafeProcessHandle.Unix.cs (7)
171private delegate SafeProcessHandle StartWithShellExecuteDelegate(ProcessStartInfo startInfo, SafeFileHandle? stdinHandle, SafeFileHandle? stdoutHandle, SafeFileHandle? stderrHandle, out ProcessWaitState.Holder? waitStateHolder); 174private static SafeProcessHandle StartCore(ProcessStartInfo startInfo, SafeFileHandle? stdinHandle, SafeFileHandle? stdoutHandle, SafeFileHandle? stderrHandle, SafeHandle[]? inheritedHandlesSnapshot = null) 177internal static SafeProcessHandle StartCore(ProcessStartInfo startInfo, SafeFileHandle? stdinHandle, SafeFileHandle? stdoutHandle, 221private static SafeProcessHandle StartWithShellExecute(ProcessStartInfo startInfo, SafeFileHandle? stdinHandle, SafeFileHandle? stdoutHandle, 255SafeProcessHandle processHandle = ForkAndExecProcess( 276SafeProcessHandle result = ForkAndExecProcess( 293private static SafeProcessHandle ForkAndExecProcess(
System\Diagnostics\Process.cs (4)
32private SafeProcessHandle? _processHandle; 122public SafeProcessHandle SafeHandle 1105private SafeProcessHandle GetOrOpenProcessHandle() 1121private void SetProcessHandle(SafeProcessHandle processHandle)
System\Diagnostics\Process.Scenarios.cs (6)
53using SafeProcessHandle processHandle = SafeProcessHandle.Start(startInfo, fallbackToNull: true); 108using SafeProcessHandle processHandle = SafeProcessHandle.Start(startInfo); 159using SafeProcessHandle processHandle = SafeProcessHandle.Start(startInfo);
System\Diagnostics\Process.Unix.cs (3)
345private SafeProcessHandle GetProcessHandle() 363SafeProcessHandle startedProcess = SafeProcessHandle.StartCore(startInfo, stdinHandle, stdoutHandle, stderrHandle, inheritedHandles, out ProcessWaitState.Holder? waitStateHolder);
System\Diagnostics\ProcessStartInfo.cs (1)
337SafeProcessHandle.EnsureShellExecuteFunc();