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

Target platform

Universal

Version

Available starting with Windows 2000.

Header

Ntddk.h (include Ntddk.h)

Library

NtosKrnl.lib

DLL

NtosKrnl.exe

IRQL

Any level

See also

IoGetCurrentProcess
PsGetCurrentProcess
PsGetCurrentThread
PsGetCurrentThreadId
PsSetCreateProcessNotifyRoutine
PsSetCreateThreadNotifyRoutine
PsSetLoadImageNotifyRoutine

 

 

Send comments about this topic to Microsoft

Show: