SafeProcessHandle.TryOpen(Int32, SafeProcessHandle) Method
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
public:
static bool TryOpen(int processId, [Runtime::InteropServices::Out] Microsoft::Win32::SafeHandles::SafeProcessHandle ^ % processHandle);
[System.Runtime.Versioning.SupportedOSPlatform("maccatalyst")]
[System.Runtime.Versioning.UnsupportedOSPlatform("ios")]
[System.Runtime.Versioning.UnsupportedOSPlatform("tvos")]
public static bool TryOpen(int processId, out Microsoft.Win32.SafeHandles.SafeProcessHandle? processHandle);
[<System.Runtime.Versioning.SupportedOSPlatform("maccatalyst")>]
[<System.Runtime.Versioning.UnsupportedOSPlatform("ios")>]
[<System.Runtime.Versioning.UnsupportedOSPlatform("tvos")>]
static member TryOpen : int * SafeProcessHandle -> bool
Public Shared Function TryOpen (processId As Integer, ByRef processHandle As SafeProcessHandle) As Boolean
Parameters
- processId
- Int32
- processHandle
- SafeProcessHandle
Returns
- Attributes