Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Trouble when getting cpu id
Message
From
14/05/2015 09:55:40
Metin Emre
Ozcom Bilgisayar Ltd.
Istanbul, Turkey
 
 
To
All
General information
Forum:
Visual FoxPro
Category:
COM/DCOM and OLE Automation
Title:
Trouble when getting cpu id
Environment versions
Visual FoxPro:
VFP 9 SP2
OS:
Windows Server 2012
Network:
Windows 2008 Server
Database:
MS SQL Server
Application:
Web
Miscellaneous
Thread ID:
01619781
Message ID:
01619781
Views:
50
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
Reply
Map
View

Click here to load this message in the networking platform