Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
System info such as CPU speed
Message
De
03/05/2006 23:07:57
 
 
À
03/05/2006 08:49:32
Information générale
Forum:
Visual FoxPro
Catégorie:
Fonctions Windows API
Versions des environnements
Visual FoxPro:
VFP 9 SP1
OS:
Windows XP
Divers
Thread ID:
01118584
Message ID:
01119004
Vues:
25
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)
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform