// ndis.h
KAFFINITY NdisGroupActiveProcessorMask(
USHORT Group
);
View the official Windows Driver Kit DDI referenceNo description available.
The NdisGroupActiveProcessorMask function returns the currently active processor mask for the specified group.
GroupA USHORT value that identifies a processor group in the local computer system.
NdisGroupActiveProcessorMask returns the currently active processor mask for the specified group as a KAFFINITY bitmap. In an environment that allows for hot-add functionality, this bitmap can change during runtime.
An NDIS driver might call the NdisGroupActiveProcessorMask function during initialization before it allocates resources.
The KAFFINITY value that NdisGroupActiveProcessorMask returns can change at runtime on SKUs that support hot-add functionality for CPUs.
Note NDIS drivers should not use the NdisSystemProcessorCount function to retrieve the number of currently active processors. Also, NDIS 6.20 and later drivers should not use the NdisSystemActiveProcessorCount function because it only returns the processor count and provides the affinity mask as an out parameter, for processor group 0.
To obtain an active processor count, call the NdisGroupActiveProcessorCount function.
NdisSystemActiveProcessorCount