ReactOS
0.4.16-dev-197-g92996da
Functions
stack.c File Reference
#include <precomp.h>
Include dependency graph for stack.c:
Go to the source code of this file.
Functions
int
CDECL
_resetstkoflw
(
void
)
Function Documentation
◆
_resetstkoflw()
int
CDECL
_resetstkoflw
(
void
)
Definition at line
38
of file
stack.c
.
39
{
40
int
stack_addr;
41
DWORD
oldprot;
42
43
/* causes stack fault that updates NtCurrentTeb()->Tib.StackLimit */
44
return
VirtualProtect
(&stack_addr, 1,
PAGE_GUARD
|
PAGE_READWRITE
, &oldprot);
45
}
DWORD
unsigned long DWORD
Definition:
ntddk_ex.h:95
PAGE_READWRITE
#define PAGE_READWRITE
Definition:
nt_native.h:1304
PAGE_GUARD
#define PAGE_GUARD
Definition:
nt_native.h:1310
VirtualProtect
BOOL NTAPI VirtualProtect(IN LPVOID lpAddress, IN SIZE_T dwSize, IN DWORD flNewProtect, OUT PDWORD lpflOldProtect)
Definition:
virtmem.c:135
sdk
lib
crt
except
stack.c
Generated on Wed Oct 30 2024 06:22:15 for ReactOS by
1.9.6