Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
How to get processor serial number
Message
From
02/05/2004 11:27:21
 
 
General information
Forum:
Visual FoxPro
Category:
Other
Miscellaneous
Thread ID:
00900029
Message ID:
00900187
Views:
23
>aoa
>hi Citin
>Try this codes, These are not all my codes but its work good
>thanks
>clear
>*!* Let's get the CPU ID
>LOCAL lcComputerName, loWMI, lowmiWin32Objects, lowmiWin32Object
>lcComputerName = GETWORDNUM(SYS(0),1)
>loWMI = GETOBJECT("WinMgmts://" + lcComputerName)
>lowmiWin32Objects = loWMI.InstancesOf("Win32_Processor")
>FOR EACH lowmiWin32Object IN lowmiWin32Objects
> WITH lowmiWin32Object
> ? "ProcessorId: " + TRANSFORM(.ProcessorId)
> ENDWITH
>ENDFOR

That was completely news to me. Just googled WinMgmts:// and ended up in the WMI section of MS. What an incredible resource.

I hope MS did their homework on security, because you can imagine what a virus writer can do with this.

Alex
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform