PsGetCurrentThreadTeb routine

The PsGetCurrentThreadTeb routine returns the Thread Environment Block (TEB) of the current thread. The call must be made in kernel-mode.

Syntax


PVOID  PsGetCurrentThreadTeb(
   void 
);

Parameters

This routine has no parameters.

Return value

A pointer to the thread environment block of the current thread. The TEB should be accessed within a try/catch exception block.

Requirements

Target platform

Universal

Version

Available in Windows 7 and later versions of Windows.

Header

Ntddk.h

Library

NtosKrnl.lib

DLL

NtosKrnl.exe

See also

Process and Thread Manager Routines

 

 

Send comments about this topic to Microsoft

Show: