Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
How do I retrieve CPU vendor info?
Message
De
16/01/2006 11:04:50
 
 
À
16/01/2006 10:34:38
Cetin Basoz
Engineerica Inc.
Izmir, Turquie
Information générale
Forum:
Visual FoxPro
Catégorie:
Fonctions Windows API
Versions des environnements
Visual FoxPro:
VFP 9
OS:
Windows XP SP2
Network:
Windows 2000 Server
Database:
Visual FoxPro
Divers
Thread ID:
00985386
Message ID:
01087189
Vues:
23
It returns:

\\.\PHYSICALDRIVE0 .null.

for me but I have a raid system, so perhaps that is the problem?




>Metin,
>It works under winXP SP2.
>
>clear
>loWMI = GetObject("winmgmts:\\.\root\cimv2")
>oItems = loWMI.ExecQuery("select * from Win32_PhysicalMedia")
>
>
>For each oItem in oItems
>? oItem.Tag, oItem.SerialNumber
>EndFor
>return
>
Cetin
>
>>I have windows XP PRO SP2. It didn't work me too.
>>
>>>Somesh,
>>>
>>>Unfortunately the solution will not work for any Windows version earlier than XP, as you can see in the requirements here: http://msdn.microsoft.com/library/default.asp?url=/library/en-us/wmisdk/wmi/win32_physicalmedia.asp
>>>
>>>
>>>Client 	Requires Windows Vista or Windows XP.
>>>Server 	Requires Windows Server "Longhorn" or Windows Server 2003.
>>>
.·*´¨)
.·`TCH
(..·*

010000110101001101101000011000010111001001110000010011110111001001000010011101010111001101110100
"When the debate is lost, slander becomes the tool of the loser." - Socrates
Vita contingit, Vive cum eo. (Life Happens, Live With it.)
"Life is not measured by the number of breaths we take, but by the moments that take our breath away." -- author unknown
"De omnibus dubitandum"
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform