Export (0) Print
Expand All
Expand Minimize

GetCurrentThreadStackLimits function

Retrieves the boundaries of the stack that was allocated by the system for the current thread.

Syntax


VOID WINAPI GetCurrentThreadStackLimits(
  _Out_  PULONG_PTR LowLimit,
  _Out_  PULONG_PTR HighLimit
);

Parameters

LowLimit [out]

A pointer variable that receives the lower boundary of the current thread stack.

HighLimit [out]

A pointer variable that receives the upper boundary of the current thread stack.

Return value

This function does not return a value.

Remarks

It is possible for user-mode code to execute in stack memory that is outside the region allocated by the system when the thread was created. Callers can use the GetCurrentThreadStackLimits function to verify that the current stack pointer is within the returned limits.

To compile an application that uses this function, set _WIN32_WINNT >= 0x0602. For more information, see Using the Windows Headers.

Requirements

Minimum supported client

Windows 8 [desktop apps only]

Minimum supported server

Windows Server 2012 [desktop apps only]

Header

Processthreadsapi.h

Library

Kernel32.lib

DLL

Kernel32.dll

See also

Thread Stack Size

 

 

Community Additions

ADD
Show:
© 2014 Microsoft