Was this page helpful?
Your feedback about this content is important. Let us know what you think.
Additional feedback?
1500 characters remaining
Export (0) Print
Expand All
Expand Minimize

IoGetRemainingStackSize routine

The IoGetRemainingStackSize routine returns the current amount of available kernel-mode stack space.

Syntax


ULONG_PTR IoGetRemainingStackSize(void);

Parameters

This routine has no parameters.

Return value

IoGetRemainingStackSize returns the number of bytes of stack space in the current thread context.

Remarks

Highest-level drivers, such as file systems, can call this routine, particularly drivers that use recursive code paths. Such a driver would call IoGetRemainingStackSize before launching a recursion to determine whether it should continue processing on an alternate code path.

For Windows Server 2003 Service Pack 1 (SP1) and later versions of Windows, callers of IoGetRemainingStackSize can be running at any IRQL. For earlier versions of Windows, the caller must be running at IRQL <= APC_LEVEL.

Requirements

Target platform

Desktop

Version

Available starting with Windows 2000.

Header

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

IRQL

See Remarks section.

See also

IoGetInitialStack
IoGetStackLimits

 

 

Send comments about this topic to Microsoft

Show:
© 2015 Microsoft