Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Trouble when getting cpu id
Message
De
14/05/2015 09:55:40
Metin Emre
Ozcom Bilgisayar Ltd.
Istanbul, Turquie
 
 
À
Tous
Information générale
Forum:
Visual FoxPro
Catégorie:
COM/DCOM et OLE Automation
Titre:
Trouble when getting cpu id
Versions des environnements
Visual FoxPro:
VFP 9 SP2
OS:
Windows Server 2012
Network:
Windows 2008 Server
Database:
MS SQL Server
Application:
Web
Divers
Thread ID:
01619781
Message ID:
01619781
Vues:
49
Hi All,

I use this code for getting cpu serial. It works in a fews seconds, that's OK. But some computers it waits 5-10 minutes. What's the problem or there are any alternate code for getting cpu id? Please don't advice mac id, there are some problems with mac id.
	Local loCPUs, loCPU, lcKey, lcCPUKey, loTreeCollection, loWMI
	loWMI		= Getobject('WinMgmts:')
	loCPUs		= loWMI.ExecQuery('Select * from Win32_Processor')
	For Each loCPU In loCPUs
		With loCPU
			lcinfstr=m.lcinfstr + .Caption
			lcinfstr=m.lcinfstr + .Name
			lcinfstr=m.lcinfstr + .ProcessorID
			lcinfstr=m.lcinfstr + Transform(.ProcessorType)
			lcinfstr=m.lcinfstr + Transform(.Revision)
			lcinfstr=m.lcinfstr + .SocketDesignation
		Endwith
	Endfor
Répondre
Fil
Voir

Click here to load this message in the networking platform