NtCurrentTeb function (winnt.h)

The NtCurrentTeb routine returns a pointer to the Thread Environment Block (TEB) of the current thread.

Syntax

_TEB * NtCurrentTeb();

Return value

A pointer to the thread environment block of the current thread.

Requirements

Requirement Value
Minimum supported client Available in Windows 7 and later versions of Windows.
Target Platform Universal
Header winnt.h

See also

NtXxx Routines