NdisCurrentProcessorIndex function (ndis.h)

The NdisCurrentProcessorIndex function returns the system-assigned number of the current processor that the caller is running on.

Syntax

ULONG NdisCurrentProcessorIndex();

Return value

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.

Remarks

NDIS drivers call the NdisCurrentProcessorIndex function to obtain the system-assigned number of the current processor that the caller is running on.

Requirements

Requirement Value
Minimum supported client Supported in NDIS 6.20 and later.
Target Platform Universal
Header ndis.h (include Ndis.h)
Library Ndis.lib
IRQL DISPATCH_LEVEL

See also

KeGetCurrentProcessorNumber

NDIS_CURRENT_PROCESSOR_NUMBER