GetProcessId

From aldeid
Jump to navigation Jump to search

Description

Retrieves the process identifier of the specified process.

Syntax

DWORD WINAPI GetProcessId(
  _In_ HANDLE Process
);

Parameters

Process [in]
A handle to the process. The handle must have the PROCESS_QUERY_INFORMATION or PROCESS_QUERY_LIMITED_INFORMATION access right.
Windows Server 2003 and Windows XP: The handle must have the PROCESS_QUERY_INFORMATION access right.