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)
25internal static readonly SafeProcessHandle InvalidHandle = new SafeProcessHandle();
Microsoft\Win32\SafeHandles\SafeProcessHandle.Unix.cs (1)
295return new SafeProcessHandle(childPid, waitStateHolder!);
System\Diagnostics\Process.Unix.cs (1)
355return new SafeProcessHandle(_processId, GetSafeWaitHandle());
27 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 (22)
Microsoft\Win32\SafeHandles\SafeProcessHandle.cs (4)
25internal static readonly SafeProcessHandle InvalidHandle = new SafeProcessHandle(); 79/// <returns>A <see cref="SafeProcessHandle"/> representing the started process.</returns> 88public static SafeProcessHandle Start(ProcessStartInfo startInfo) 98internal static SafeProcessHandle Start(ProcessStartInfo startInfo, bool fallbackToNull)
Microsoft\Win32\SafeHandles\SafeProcessHandle.Unix.cs (8)
92private delegate SafeProcessHandle StartWithShellExecuteDelegate(ProcessStartInfo startInfo, SafeFileHandle? stdinHandle, SafeFileHandle? stdoutHandle, SafeFileHandle? stderrHandle, out ProcessWaitState.Holder? waitStateHolder); 95private static SafeProcessHandle StartCore(ProcessStartInfo startInfo, SafeFileHandle? stdinHandle, SafeFileHandle? stdoutHandle, SafeFileHandle? stderrHandle, SafeHandle[]? inheritedHandlesSnapshot = null) 97SafeProcessHandle startedProcess = StartCore(startInfo, stdinHandle, stdoutHandle, stderrHandle, inheritedHandlesSnapshot, out ProcessWaitState.Holder? waitStateHolder); 106internal static SafeProcessHandle StartCore(ProcessStartInfo startInfo, SafeFileHandle? stdinHandle, SafeFileHandle? stdoutHandle, 150private static SafeProcessHandle StartWithShellExecute(ProcessStartInfo startInfo, SafeFileHandle? stdinHandle, SafeFileHandle? stdoutHandle, 184SafeProcessHandle processHandle = ForkAndExecProcess( 205SafeProcessHandle result = ForkAndExecProcess( 222private 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 (2)
54using SafeProcessHandle processHandle = SafeProcessHandle.Start(startInfo, fallbackToNull: true);
System\Diagnostics\Process.Unix.cs (3)
345private SafeProcessHandle GetProcessHandle() 360SafeProcessHandle startedProcess = SafeProcessHandle.StartCore(startInfo, stdinHandle, stdoutHandle, stderrHandle, inheritedHandles, out ProcessWaitState.Holder? waitStateHolder);
System\Diagnostics\ProcessStartInfo.cs (1)
332SafeProcessHandle.EnsureShellExecuteFunc();