BOOL GetLogicalProcessorInformation( [out] PSYSTEM_LOGICAL_PROCESSOR_INFORMATION Buffer, [in, out] PDWORD ReturnedLength ); https://docs.microsoft.com/en-us/wi.../nf-sysinfoapi-getlogicalprocessorinformation