This topic has not yet been rated Rate this topic

PsGetCurrentThread routine

The PsGetCurrentThread routine identifies the current thread.

Syntax

PETHREAD PsGetCurrentThread(void);

Parameters

This routine has no parameters.

Return value

PsGetCurrentThread returns a pointer to the executive thread object that represents the currently executing thread.

Requirements

Version

Available in Windows 2000 and later versions of Windows.

Header

Wdm.h (include Wdm.h, Ntddk.h, or Ntifs.h)

Library

Contained in Ntoskrnl.lib.

IRQL

Any level

See also

KeGetCurrentThread
PsCreateSystemThread
PsGetCurrentProcess
PsGetCurrentProcessId
PsIsSystemThread

 

 

Send comments about this topic to Microsoft

Build date: 12/8/2011

Did you find this helpful?
(1500 characters remaining)