GetCurrentProcessorNumberEx function

Retrieves the processor group and number of the logical processor in which the calling thread is running.

Syntax

void GetCurrentProcessorNumberEx(
  PPROCESSOR_NUMBER ProcNumber
);

Parameters

ProcNumber

A pointer to a PROCESSOR_NUMBER structure that receives the processor group to which the logical processor is assigned and the number of the logical processor within its group.

Return Value

If the function succeeds, the ProcNumber parameter contains the group and processor number of the processor on which the calling thread is running.

Remarks

To compile an application that uses this function, set _WIN32_WINNT >= 0x0601. For more information, see Using the Windows Headers.

Requirements

   
Minimum supported client Windows 7 [desktop apps | UWP apps]
Minimum supported server Windows Server 2008 R2 [desktop apps | UWP apps]
Target Platform Windows
Header processthreadsapi.h (include Windows.h)
Library Kernel32.lib
DLL Kernel32.dll