|
|
#1 |
|
Senior Member
Join Date: Nov 2005
Posts: 115
|
Get # of cores AND logical processors
This is probably what I am looking for: http://msdn.microsoft.com/en-us/library/ms683194.aspx
This is actually way over my head, I don't understand a damn thing about using System plug-in even after reading the readme. I want to get the number of cores when hyperthreading is involved. It should say I have 2 cores/processors and not 4. CPUDesc was last compiled in 2003, and it's not unicode. |
|
|
|
|
|
#2 |
|
Major Dude
Join Date: Oct 2006
Posts: 1,892
|
(You can use the CallAnsiPlugin plug-in to execute ansi plugins on unicode NSIS.)
|
|
|
|
|
|
#3 |
|
Senior Member
Join Date: Nov 2005
Posts: 115
|
Well, it also counts hyperthreading as a cpu.. even Atom processors are hyperthreaded.
|
|
|
|
|
|
#4 |
|
Junior Member
Join Date: Jul 2009
Posts: 36
|
I took the challenge and came up with the following script.
PHP Code:
|
|
|
|
|
|
#5 |
|
Senior Member
Join Date: Nov 2005
Posts: 115
|
Works for me, 64-bit Win 7, reports 2 cores/4 logical . Anyone else want to test it out?
|
|
|
|
|
|
#6 |
|
Senior Member
Join Date: Nov 2005
Posts: 115
|
I tried on my AMD Turion X2 laptop and it reported correctly, and had someone test his and it reported correctly on his Core i7.
You should wiki it since I am sure other people will find it of use. |
|
|
|
|
|
#7 |
|
Major Dude
Join Date: Oct 2006
Posts: 1,892
|
"Processor core(s): 1 Logical Processor(s): 2" for my C2D E6750 on Windows Server 2003 SP2 (actual OS).
"GetLogicalProcessorInformation is not available on your system!" for same CPU on Windows 98 SE virtual machine. "GetLogicalProcessorInformation is not available on your system!" for same CPU on Windows 2000 pro VM. (Is there an alternative here?) "Processor core(s): 2 Logical Processor(s): 2" for same CPU on Windows Vista VM. "Processor core(s): 2 Logical Processor(s): 2" for same CPU on Windows 7 pro x64 VM. "Processor core(s): 2 Logical Processor(s): 2" for same CPU on Windows XP pro x64 VM. VMs are run on VMWare Workstation. Obviously there are still some kinks that need to be solved, but the help on the SYSTEM_LOGICAL_PROCESSOR_INFORMATION struct is rather confusing... If I'm reading it correctly, Windows Server 2003 and Windows XP Professional x64 Edition should both return the same thing. So maybe it's VMWare that's simulating the two C2D cores as two physical CPUs? |
|
|
|
|
|
#8 |
|
Senior Member
Join Date: Nov 2005
Posts: 115
|
Using unicode anyway, Win 2000 users in this particular application is a very very small minority, the market share of Win 2000 isn't even half a percent. The particular program being packaged does not support 9x/ME/NT.
Every system I tested had Win 7 64-bit. |
|
|
|
![]() |
|
|||||||
| Thread Tools | Search this Thread |
| Display Modes | |
|
|