The _rdteb intrinsic has the following declaration:
void *_rdteb(void);
This intrinsic function executes a CALL_PAL RDTEB (Read Thread Environment Block) instruction. The return value is the base address of the current Thread Environment Block (TEB) for the currently executing thread on the current processor.