// wdm.h
PVOID IoGetInitialStack();
View the official Windows Driver Kit DDI referenceNo description available.
The IoGetInitialStack routine returns the base address of the current thread's stack.
IoGetInitialStack returns the initial base address of the current thread's stack.
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.