Kernel32GetMaximumProcessorCount Method
Returns the maximum number of logical processors that a processor group or the system can have.
Namespace: DevCase.Win32.NativeMethodsAssembly: 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
)
<DllImportAttribute("Kernel32.dll", ExactSpelling := true, SetLastError := true>]
Public Shared Function GetMaximumProcessorCount (
groupNumber As UShort
) As UInteger
Dim groupNumber As UShort
Dim returnValue As UInteger
returnValue = Kernel32.GetMaximumProcessorCount(groupNumber)
public:
[DllImportAttribute(L"Kernel32.dll", ExactSpelling = true, SetLastError = true)]
static unsigned int GetMaximumProcessorCount(
unsigned short groupNumber
)
[<DllImportAttribute("Kernel32.dll", ExactSpelling = true, SetLastError = true)>]
static member GetMaximumProcessorCount :
groupNumber : uint16 -> uint32
No code example is currently available or this language may not be supported.
- 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.
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.