Was this page helpful?
Your feedback about this content is important. Let us know what you think.
Additional feedback?
1500 characters remaining
Export (0) Print
Expand All

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

Target platform

Universal

Version

Available starting with Windows 2000.

Header

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

Library

NtosKrnl.lib

DLL

NtosKrnl.exe

IRQL

Any level

See also

KeGetCurrentThread
PsCreateSystemThread
PsGetCurrentProcess
PsGetCurrentProcessId
PsIsSystemThread

 

 

Send comments about this topic to Microsoft

Show:
© 2015 Microsoft