Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
How can I format a disk
Message
Information générale
Forum:
Visual FoxPro
Catégorie:
Fonctions Windows API
Divers
Thread ID:
00177270
Message ID:
00177768
Vues:
34
>Hi George,
>
>>The ability to format a drive is (or at least was) provided through a ROM BIOS interrupt call (one of the 13H functions). Windows exposes some of this functionality through the API, but not all. In general, going outside of the API to access the ROM BIOS isn't a terribly good idea, IMHO. This is what you'd have to do, I believe.
>
>MSDN says that you can use DeviceIoControl() by passing the IOCTL_DISK_FORMAT_TRACKS parameter. But that's only available in Windows NT.
>
Hi Christof,

Yep, the SDK shows it too. For other readers, it's the parameter that's only available in NT, the function is available in both. I haven't looked at the parameter that closely, but it looks as if it couldn't be implemented without something like your structures wrapper.
George

Ubi caritas et amor, deus ibi est
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform