My question is pretty simple and straightforward: if I have e.g. 1MB of RAM assigned to the program\'s stack, can I get the addresses of the start and the end, or the start and
On Windows before 8, implement GetCurrentThreadStackLimits() yourself:
#include #if _WIN32_WINNT < 0x0602 VOID WINAPI GetCurrentThreadStackLimits(LPVOID *StackLimit, LPVOID *StackBase) { NT_TIB *tib = (NT_TIB *) NtCurrentTeb(); *StackLimit = tib->StackLimit; *StackBase = tib->StackBase; } #endif