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 starting with Windows 2000.

Header

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

Library

Ntoskrnl.lib

IRQL

Any level

See also

KeGetCurrentThread
PsCreateSystemThread
PsGetCurrentProcess
PsGetCurrentProcessId
PsIsSystemThread

 

 

Send comments about this topic to Microsoft

Show:
© 2014 Microsoft