This topic has not yet been rated - Rate this topic

PsGetCurrentProcessId routine

The PsGetCurrentProcessId routine identifies the current thread's process.

Syntax

HANDLE PsGetCurrentProcessId(void);

Parameters

This routine has no parameters.

Return value

PsGetCurrentProcessId returns the process ID of the current thread's process.

Requirements

Version

Available in Windows 2000 and later versions of Windows.

Header

Ntddk.h (include Ntddk.h)

Library

Contained in Ntoskrnl.lib.

IRQL

Any level

See also

IoGetCurrentProcess
PsGetCurrentProcess
PsGetCurrentThread
PsGetCurrentThreadId
PsSetCreateProcessNotifyRoutine
PsSetCreateThreadNotifyRoutine
PsSetLoadImageNotifyRoutine

 

 

Send comments about this topic to Microsoft

Build date: 4/2/2012

Did you find this helpful?
(1500 characters remaining)