Windows Driver Kit: Kernel-Mode Driver Architecture
PsGetCurrentProcessId

The PsGetCurrentProcessId routine identifies the current thread's process.

HANDLE
  PsGetCurrentProcessId(
    VOID
    );

Parameters

None

Return Value

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

Requirements

IRQL: Any level

Headers: Declared in Ntddk.h. Include Ntddk.h.

See Also

IoGetCurrentProcess, PsGetCurrentProcess, PsGetCurrentThread, PsGetCurrentThreadId, PsSetCreateProcessNotifyRoutine, PsSetCreateThreadNotifyRoutine, PsSetLoadImageNotifyRoutine


Send feedback on this topic
Built on November 19, 2009
Page view tracker