Debugging Tools for Windows

GetTebAddress

The GetTebAddress function returns the address of the thread environment block (TEB) for the current operating system thread.

VOID
 GetTebAddress(
    PULONGLONG  Address
    );

Parameters

Address
Receives the address of the TEB for the current operating system thread.

Return Value

None

Comments

In user-mode debugging, the TEB for the current thread is returned. In kernel-mode debugging, the TEB for the operating system thread that was running on the current processor when the last event occurred is returned.

Requirements

Headers: Defined in wdbgexts.h. If you are writing a WdbgExts extension, include wdbgexts.h. If you are writing a DbgEng extension that calls this function, include wdbgexts.h before dbgeng.h (see Writing DbgEng Extension Code for details).

See Also

GetPebAddress

Build machine: CAPEBUILD