IoGetStackLimits function (wdm.h)
The IoGetStackLimits routine returns the boundaries of the current thread's stack frame.
void IoGetStackLimits( [out] PULONG_PTR LowLimit, [out] PULONG_PTR HighLimit );
Pointer to a caller-supplied variable in which this routine returns the lower offset of the current thread's stack frame.
Pointer to a caller-supplied variable in which this routine returns the higher offset of the current thread's stack frame.
Highest-level drivers can call this routine, particularly file systems that have been passed a pointer to a location on the current thread's stack.
In Windows Server 2003 Service Pack 1 (SP1) and later versions of Windows, callers of IoGetStackLimits can be running at any IRQL. For earlier operating systems, the caller must be running at IRQL <= APC_LEVEL.
|Minimum supported client||Available starting with Windows 2000.|
|Header||wdm.h (include Wdm.h, Ntddk.h, Ntifs.h)|
|IRQL||See Remarks section.|
Submit and view feedback for