ReactOS
0.4.15-dev-4594-g505ac65
pteb.c
Go to the documentation of this file.
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"
, (
DWORD
)Teb->
Tib
.
StackBase
);
19
printf
(
"StackLimit: 0x%08lX\n"
, (
DWORD
)Teb->
Tib
.
StackLimit
);
20
printf
(
"DeallocationStack: 0x%08lX\n"
, (
DWORD
)Teb->
DeallocationStack
);
21
22
return
(0);
23
}
argc
static int argc
Definition:
ServiceArgs.c:12
x
GLint GLint GLint GLint GLint x
Definition:
gl.h:1548
__asm__
__asm__("\n\t \ NewInt3Handler:\n\t \ pushl $" STR(REASON_INT3) "\n\t \ // call debugger loop\n\t \ jmp NewInt31Handler\n\t \ ")
argv
#define argv
Definition:
mplay32.c:18
_TEB::Tib
NT_TIB Tib
Definition:
compat.h:696
printf
#define printf
Definition:
freeldr.h:94
_TEB::DeallocationStack
PVOID DeallocationStack
Definition:
compat.h:737
DWORD
unsigned long DWORD
Definition:
ntddk_ex.h:95
main
int main(int argc, char *argv[])
Definition:
pteb.c:5
_TEB
Definition:
compat.h:694
_NT_TIB::StackBase
PVOID StackBase
Definition:
compat.h:571
PTEB
struct _TEB * PTEB
_NT_TIB::StackLimit
PVOID StackLimit
Definition:
compat.h:572
modules
rostests
tests
pteb
pteb.c
Generated on Tue May 24 2022 06:06:23 for ReactOS by
1.8.15