Subj : Re: how to find whether a cpu is hyperthreaded To : comp.programming.threads From : eg Date : Thu Jul 28 2005 06:32 am mohit.jha@gmail.com wrote: > Hi > > I have been using WMI in Vb6 to find the details about the hardware. I > need to find wheather the CPU is hyperthreaded, any way to do this in > VB or any other language. I will be remotely connecting that machine. > > Thanks > Mohit > For, Windows "Longhorn" or Windows XP Professional x64 Edition clients, or Windows Server "Longhorn" or Windows Server 2003... There is a function called: GetLogicalProcessorInformation ( ) See: http://msdn.microsoft.com/library/default.asp?url=/library/en-us/dllproc/base/getlogicalprocessorinformation.asp For older Windows 2000 and WinXP 32 bit clients SYSTEM_INFO SysInfo ; GetSystemInfo ( & SysInfo ) ; DWORD count = SysInfo.dwNumberOfProcessor ; This will return a count of 2 when you have 1 physical processor which is hyperthreaded... .