PsGetCurrentProcessId function

The PsGetCurrentProcessId routine identifies the current thread's process.

Syntax

HANDLE PsGetCurrentProcessId(

);

Parameters

This function has no parameters.

Return Value

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

Requirements

   
Minimum supported client Available starting with Windows 2000.
Target Platform Universal
Header ntddk.h (include Ntddk.h)
Library NtosKrnl.lib
DLL NtosKrnl.exe
IRQL Any level

See Also

IoGetCurrentProcess

PsGetCurrentProcess

PsGetCurrentThread

PsGetCurrentThreadId

PsSetCreateProcessNotifyRoutine

PsSetCreateThreadNotifyRoutine

PsSetLoadImageNotifyRoutine