This topic has not yet been rated - Rate this topic

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

Version

Available in Windows 7 and later versions of Windows.

Header

Ntddk.h

Library

Contained in Ntoskrnl.lib.

See also

Process and Thread Manager Routines

 

 

Send comments about this topic to Microsoft

Build date: 4/2/2012

Did you find this helpful?
(1500 characters remaining)