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 |
|
|
Library |
|
See also
Send comments about this topic to Microsoft
Build date: 4/2/2012