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

C++
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 clientWindows 2000 Professional
Minimum supported serverWindows 2000 Server
HeaderWinternl.h

See Also

TlsGetValue

Send comments about this topic to Microsoft

Build date: 11/19/2009

Tags :


Page view tracker