// ndis.h
ULONG NdisCurrentProcessorIndex();
View the official Windows Driver Kit DDI referenceNo description available.
The NdisCurrentProcessorIndex function returns the system-assigned number of the current processor that the caller is running on.
NdisCurrentProcessorIndex returns a ULONG value that represents the processor that the caller is currently running on. The number of processors in a symmetric multiprocessor (SMP) computer is a zero-based value.
NDIS drivers call the NdisCurrentProcessorIndex function to obtain the system-assigned number of the current processor that the caller is running on.