TEB Structure
TEB Structure

[This structure may be altered in future versions of Windows. Applications should use the alternate functions listed in this topic.]

Describes the state of a thread.

Syntax

typedef struct _TEB {
  BYTE  Reserved1[1952];
  PVOID Reserved2[412];
  PVOID TlsSlots[64];
  BYTE  Reserved3[8];
  PVOID Reserved4[26];
  PVOID ReservedForOle;
  PVOID Reserved5[4];
  PVOID TlsExpansionSlots;
} TEB, *PTEB;

Members

Reserved1

Reserved. Do not access.

Reserved2

Reserved. Do not access.

TlsSlots

A pointer to thread local storage data. Do not directly access.

Reserved3

Reserved. Do not access.

Reserved4

Reserved. Do not access.

ReservedForOle

Reserved for OLE. Do not directly access.

Reserved5

Reserved. Do not access.

TlsExpansionSlots

A pointer to thread local storage expansion data. Do not directly access.

Remarks

You should not directly access this structure. To access the values of the TlsSlots and TlsExpansionSlots members, call TlsGetValue. To access the value of the ReservedForOle member, call CoGetContextToken.

The definition of this structure may change in future versions, so do not assume a maximum size for this structure.

Requirements

Minimum supported client

Windows 2000 Professional

Minimum supported server

Windows 2000 Server

Header

Winternl.h

See Also

TlsGetValue

 

 

Send comments about this topic to Microsoft

Build date: 2/4/2010

© 2010 Microsoft Corporation. All rights reserved.   Terms of Use | Trademarks | Privacy Statement
Page view tracker
Rate the Lightweight library
x
Lightweight builds on ScriptFree (loband) by adding features you've requested: a SearchBox and default code language selection.
Do you like the SearchBox?
Do you like the tabbed code blocks?
How useful is this topic?
Tell us more.
Thanks
x
You're helping to improve MSDN Online.
Feedback
Switch View
Classic
Lightweight Beta
ScriptFree
Switch View