Kernel32GetMaximumProcessorCount Method

Returns the maximum number of logical processors that a processor group or the system can have.

Definition

Namespace: DevCase.Win32.NativeMethods
Assembly: DevCase.net48 (in DevCase.net48.dll) Version: 6.0.0.0 (6.0)
XMLNS for XAML: Not mapped to an xmlns.
[DllImportAttribute("Kernel32.dll", ExactSpelling = true, SetLastError = true)]
public static uint GetMaximumProcessorCount(
	ushort groupNumber
)

Parameters

groupNumber  UInt16
The processor group number.

If this parameter is ALL_PROCESSOR_GROUPS, the function returns the maximum number of processors that the system can have.

Return Value

UInt32
If the function succeeds, the return value is the maximum number of processors that the specified group can have.

If the function fails, the return value is zero.

Remarks

See Also