PVOID
IoGetInitialStack(
);
Return Value
IoGetInitialStack returns the initial base address of the current thread’s stack.
Comments
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.
Callers of IoGetInitialStack must be running at IRQL PASSIVE_LEVEL.