Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
System info such as CPU speed
Message
From
03/05/2006 23:07:57
 
 
To
03/05/2006 08:49:32
General information
Forum:
Visual FoxPro
Category:
Windows API functions
Environment versions
Visual FoxPro:
VFP 9 SP1
OS:
Windows XP
Miscellaneous
Thread ID:
01118584
Message ID:
01119004
Views:
23
Thanks Stuart


>Processor speed - as with almost all of the system info - can be determined using WMI.
>
>
>oWMILocator = createobject("WbemScripting.SWbemLocator")
>oWMI = oWMILocator.ConnectServer(".", "root\cimv2")
>oProcessors = oWMI.InstancesOf("WIN32_Processor")
>for each oProcessor in oProcessors
> ? "Processor speed: ", oProcessor.MaxClockSpeed
>next
>
__________________________________________________
Mesa Vista Software (david@mesa-vista.com)
Previous
Reply
Map
View

Click here to load this message in the networking platform