IoGetInitialStack function

The IoGetInitialStack routine returns the base address of the current thread's stack.

Syntax

NTKERNELAPI PVOID IoGetInitialStack(

);

Parameters

This function has no parameters.

Return Value

IoGetInitialStack returns the initial base address of the current thread's stack.

Remarks

Highest-level drivers can call this routine, particularly file systems attempting to determine whether they've been passed a pointer to a location on the current thread's stack.

Requirements

   
Windows version Available starting with Windows 2000.
Target Platform Universal
Header wdm.h (include Ntddk.h)
Library NtosKrnl.lib
DLL NtosKrnl.exe
IRQL "<=APC_LEVEL"
DDI compliance rules IrqlIoApcLte, HwStorPortProhibitedDDIs

See Also

IoGetRemainingStackSize

IoGetStackLimits