04-06-2024, 05:26 PM
(04-06-2024, 05:22 PM)SagaraS Wrote:I think the following should help.Code: (Select All)DECLARE DYNAMIC LIBRARY "KERNEL32"
FUNCTION GetMaximumProcessorCount% ALIAS "GetMaximumProcessorCount" (_
Byval GroupNumber as integer)
END DECLARE
DIM CPUthreads AS INTEGER
PRINT GetMaximumProcessorCount(CPUthreads)
I think I have found a useful solution.
At least for my purposes for now.
But those are the CPU cores, or are they for the threads?
Because the threads refer to the CPU cores.
If an i7 980 now has 6 cores, it can have 12 threads.
It would be interesting how this can be determined via API.
So that you can display the max cores and max threads separately.
GetLogicalProcessorInformation function (sysinfoapi.h) - Win32 apps | Microsoft Learn