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