다음을 통해 공유


NdisSystemProcessorCount (Windows Embedded CE 6.0)

1/6/2010

This function determines whether its caller is running on a single processor or multiprocessor machine.

Syntax

CCHAR NdisSystemProcessorCount(VOID);

Parameters

None.

Return Value

The return value is the number of processors in the machine.

Remarks

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.

Requirements

Header ndis.h
Windows Embedded CE Windows CE .NET 4.0 and later

See Also

Reference

NDIS Library Functions
MiniportInitialize

Concepts

Initialization of NDIS Protocol Drivers