Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Processot ID or Serial Number
Message
From
06/05/2004 15:48:04
Cetin Basoz
Engineerica Inc.
Izmir, Turkey
 
General information
Forum:
Visual FoxPro
Category:
Other
Miscellaneous
Thread ID:
00901466
Message ID:
00901730
Views:
17
>>>Hi All
>>>
>>>How to get the Processor or CPU serial number and other information of it
>>>
>>>Thanks
>>>Anwar
>>
>>Using WMI.
>>Only some processors have a CPU serial feature. IOW accept you can't.
>>Cetin
>
>
>And the code will be something like this (some properties only):
>
>
>local loWMIService, loCPUs, loCPU
>
>loWMIService	= GetObject("winmgmts:\\.\root\cimv2")
>loCPUs		= loWMIService.ExecQuery("Select * from Win32_Processor")
>
>For Each loCPU in loCPUs
>	with loCPU
>		? 'CPU Id		', .ProcessorID
>		? 'Name			', .Name
>		? 'AddressWidth		', .AddressWidth
>		? 'Architecture		', .Architecture
>		? 'Caption		', .Caption
>		? 'CurrentClockSpeed	', .CurrentClockSpeed
>		? 'DataWidth		', .DataWidth
>		? 'ExtClock		', .ExtClock
>		? 'Family		', .Family
>		? 'Version		', .Version
>		? 'UpgradeMethod	', .UpgradeMethod
>   endwith
>endfor
>
>
>< EDIT>
>
>Oops, sorry Cetin, the message was intended to be send to the original poster :(
>
>< /EDIT>

no problem :) I was trying to avoid him from thinking he could use it for something like copy protection.
Cetin
Çetin Basöz

The way to Go
Flutter - For mobile, web and desktop.
World's most advanced open source relational database.
.Net for foxheads - Blog (main)
FoxSharp - Blog (mirror)
Welcome to FoxyClasses

LinqPad - C#,VB,F#,SQL,eSQL ... scratchpad
Previous
Reply
Map
View

Click here to load this message in the networking platform