IoGetInitialStack function (wdm.h)

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

Syntax

PVOID IoGetInitialStack();

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

Requirement Value
Minimum supported client 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 HwStorPortProhibitedDDIs(storport), IrqlIoApcLte(wdm)

See also

IoGetRemainingStackSize

IoGetStackLimits