Previous Next

IoGetStackLimits

The IoGetStackLimits routine returns the boundaries of the current thread's stack frame.

VOID
  IoGetStackLimits(
    OUT PULONG  LowLimit,
    OUT PULONG  HighLimit
    );

Parameters

LowLimit
Pointer to a caller-supplied variable in which this routine returns the lower offset of the current thread's stack frame.
HighLimit
Pointer to a caller-supplied variable in which this routine returns the higher offset of the current thread's stack frame.

Return Value

None

Headers

Declared in ntddk.h. Include ntddk.h.

Comments

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.

Callers of IoGetStackLimits must be running at IRQL < DISPATCH_LEVEL.

See Also

IoGetInitialStack, IoGetRemainingStackSize