Why is IoGetInitialStack function limited to IRQL<=APC_LEVEL?

83 Views Asked by At

I'm trying to find the top (or base) of the stack in my callback function that is used in the Windows kernel. I thought to use IoGetInitialStack function for that, but unfortunately it's documentation states:

IRQL "<=APC_LEVEL"

I looked into it with a disassembler and all it seems to be doing in my copy of ntoskrnl is this:

enter image description here

Why are they limiting it to IRQL<=APC_LEVEL?

0

There are 0 best solutions below