IoWithinStackLimits - NtDoc

Native API online documentation, based on the System Informer (formerly Process Hacker) phnt headers
// wdm.h

LOGICAL IoWithinStackLimits(
  [in] ULONG_PTR RegionStart,
  [in] SIZE_T    RegionSize
);
View the official Windows Driver Kit DDI reference

NtDoc

No description available.

Windows Driver Kit DDI reference (nf-wdm-iowithinstacklimits)

Description

The IoWithinStackLimits routine determines whether a region of memory is within the stack limit of the current thread.

Parameters

RegionStart [in]

A pointer to the start of the region.

RegionSize [in]

The size of the region.

Return value

IoWithinStackLimits returns TRUE is the current thread's stack contains the region completely and FALSE otherwise.

Remarks

The IoWithinStackLimits routine considers all possible stack segments and the DPC stack, if necessary.

For drivers that use KeExpandKernelStackAndCallout, IoWithinStackLimits considers only the current thread.

See also

IoGetInitialStack

IoGetRemainingStackSize

IoGetStackLimits