CCHAR
NdisSystemProcessorCount(VOID);
NdisSystemProcessorCount determines whether its caller is running on a uniprocessor or multiprocessor machine.
NdisSystemProcessorCount returns the number of processors in the machine.
An NDIS driver might call this function during initialization before it allocates resources.
For example, suppose NdisSystemProcessorCount returns a value greater than one, which suggests the machine is more likely to be a server than a workstation. When this occurs, the driver could allocate more memory on the assumption that network traffic will be significantly heavier on a server.
Callers of NdisSystemProcessorCount run at IRQL PASSIVE_LEVEL.