Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
GetVolumeInformation()
Message
De
26/04/2001 08:43:27
Cetin Basoz
Engineerica Inc.
Izmir, Turquie
 
 
À
26/04/2001 07:25:51
Information générale
Forum:
Visual FoxPro
Catégorie:
Fonctions Windows API
Divers
Thread ID:
00500027
Message ID:
00500042
Vues:
27
>Hi,
>
>Tried using this API but results are confusing. I have 2x10Gb Quantum drives in my WIN NT box. The API call will return the serial number of D: but not C:.
>
>Anyone have any ideas (Returns vol. labels for each drive OK).
>
>Regards
>Doug Johnston

Doug,
Probably it's a NTFS drive. ASM code returns what dir returns but unfortunately fox no more supports loading-calling asm files.
GetVolumeInformation probably is doing it the right way and getting from correct offsett of BPB depending on drive type. On NTFS it's on offsett 48 and a LONGLONG value while in FAT32, FAT16 on offsett 43 and a dword value.
Probably converting returned value from a 64bits value you would ge that number too.
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
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform