GetProcessIDNt

The GetProcessIDNt function returns the process id of a given process handle.

function GetProcessIDNt(
  dwProcessHandle: DWord
): DWord; stdcall;

Parameters

dwProcessHandle
[in] Handle of the process.
 

Remarks

Works only for WinNT systems. Better use GetProcessID which supports WinNt and Win9x systems.

 

Return Values

If the function succeeds, the return value is the process id.

If the function fails, the return value is 0.

 

Requirements

Client Requires Windows XP, Windows 2000 Professional, Windows NT Workstation
Header

Declared in uallKernel.pas