:pserver:cvsanon@mok.lvcm.com:/CVS/ReactOS reactos
[reactos.git] / apps / tests / pteb / pteb.c
1 #include <ntos.h>
2 #include <stdio.h>
3
4
5 int main(int argc, char* argv[])
6 {
7    int x;
8    PTEB Teb;
9    
10    printf("TEB dumpper\n");
11    __asm__("movl %%fs:0x18, %0\n\t"
12            : "=a" (x)
13            : /* no inputs */);
14    printf("fs[0x18] %x\n", x);
15
16    Teb = (PTEB)x;
17
18    printf("StackBase: 0x%08lX\n", Teb->Tib.StackBase);
19    printf("StackLimit: 0x%08lX\n", Teb->Tib.StackLimit);
20    printf("DeallocationStack: 0x%08lX\n", Teb->DeallocationStack);
21
22    return(0);
23 }