// wdm.h
LOGICAL KeIsExecutingDpc();
View the official Windows Driver Kit DDI referenceNo description available.
Checks whether a DPC is being executed on current processor.
This function returns a non-zero value if a DPC is currently being executed on the current processor. Otherwise, returns zero.