Table of Contents

Method OpenProcess

Namespace
Alternet.UI
Assembly
Alternet.UI.Common.dll

OpenProcess(uint, bool, uint)

Opens an existing process object and returns a handle that can be used to access the process.

public static extern nint OpenProcess(uint dwDesiredAccess, bool bInheritHandle, uint dwProcessId)

Parameters

dwDesiredAccess uint

The access level requested for the process handle.

bInheritHandle bool

If true, processes created by this process will inherit the handle.

dwProcessId uint

The identifier of the local process to be opened.

Returns

nint

A handle to the specified process, or Zero on failure.