_rdtebex
Microsoft Specific
Reads the thread pointer register (IntR13) and returns its value, which is the base address of the current thread environment block (TEB).
void* _rdtebex();
This routine is available only as an intrinsic.
This intrinsic is similar to _rdteb. The difference is that _rdtebex is not thread-safe and blocks some optimizations that assume the Thread Pointer register is fixed.