ReactOS 0.4.15-dev-7906-g1b85a5f
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}
unsigned long DWORD
Definition: ntddk_ex.h:95
#define PAGE_READWRITE
Definition: nt_native.h:1304
#define PAGE_GUARD
Definition: nt_native.h:1310
BOOL NTAPI VirtualProtect(IN LPVOID lpAddress, IN SIZE_T dwSize, IN DWORD flNewProtect, OUT PDWORD lpflOldProtect)
Definition: virtmem.c:135