Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Obtain Hard Drive Serial Number
Message
Information générale
Forum:
Visual FoxPro
Catégorie:
FoxPro 2.x
Divers
Thread ID:
00475301
Message ID:
00519320
Vues:
33
I found a little something. Check out

http://www.sysinternals.com/ntw2k/source/misc.shtml

I was looking for something else (as usual) and stumbled across this gem by Mark Russovich (the genius who always writes about NT internals in WinNT Magazine), and remembered our thread, so here's an update. :)


>The API interfaces with the ROM BIOS. And yes, a disk gets a new serial number every time it's formatted. However, the API does not expose this functionality.
>
>
>>>SetVolumeLabel() is as close as you can come. The API provides no functionality to directly set the serial number. In order to do so, you'd have to access a couple of ROM BIOS interrupt calls. Specifically, Int 21h Function 440Dh Minor Code 46h and 66h for FAT32. In order to do so, I think you'd have to write a virtual device driver in C.
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform