IoWithinStackLimits routine

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

Syntax


LOGICAL IoWithinStackLimits(
  _In_ ULONG_PTR RegionStart,
  _In_ SIZE_T    RegionSize
);

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.

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

Requirements

Target platform

Universal

Version

Available on Windows Vista and later versions of the Windows operating system.

Header

Wdm.h (include Wdm.h, Ntddk.h, or Ntifs.h)

Library

NtosKrnl.lib

DLL

NtosKrnl.exe

IRQL

<= APC_LEVEL

See also

IoGetInitialStack
IoGetRemainingStackSize
IoGetStackLimits

 

 

Send comments about this topic to Microsoft

Show: