Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Hard Disk serial number
Message
De
06/01/2006 03:41:58
Cetin Basoz
Engineerica Inc.
Izmir, Turquie
 
 
À
06/01/2006 03:31:45
Somesh Sahu
Cybage Software Pvt Ltd,
Pune, Inde
Information générale
Forum:
Visual FoxPro
Catégorie:
Fonctions Windows API
Versions des environnements
Visual FoxPro:
VFP 7
Divers
Thread ID:
01083011
Message ID:
01083936
Vues:
22
>Hi,
> Thanks for giving the solution.
> OS in my machine is Win Xp.
> Can you please tell me if it will also work for other OS like Win 98 and Win 2000?
>
>Regards,
>Somesh
>
>>>Hi
>>>I am developing a software in VFP for which i need the serial number of the hard disk. I don't want the Volume Number of the drive (ie c: , d: etc) as according to my information, this volume number changes whenever that volume is formatted. Can anybody help in getting the Hard Disk serial number which is manufacturer defined and which will not change.
>>> Can anyone please tell me the VFP or API function to obtain disk serial number.
>>>
>>> thanks in advance
>>>
>>>Regards,
>>>Somesh
>>
>>
>>loWMI = GetObject("winmgmts:\\.\root\cimv2")
>>oItems = loWMI.ExecQuery("select * from Win32_PhysicalMedia")
>>
>>For each oItem in oItems
>> ? oItem.Tag, oItem.SerialNumber
>>endfor
>>
Cetin

Re: Hard Disk serial number Thread #1083011 Message #1083233

Anyway what would you do with it. Hope not another protection trial. Use your imagination if that's for protection (something secret nobody would like to explicitly tell on forums).
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
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform