Kernel32GetProcessId Method

Retrieves the process identifier (PID) of the specified process handle.

Definition

Namespace: DevCase.Win32.NativeMethods
Assembly: DevCase.net48 (in DevCase.net48.dll) Version: 6.0.0.0 (6.0)
XMLNS for XAML: Not mapped to an xmlns.
[DllImportAttribute("Kernel32.dll", SetLastError = true)]
public static int GetProcessId(
	IntPtr handle
)

Parameters

handle  IntPtr
A handle to the process.

The handle must have the QueryInformation or QueryLimitedInformation access right.

Return Value

Int32
The process identifier (PID).

Remarks

See Also