Information générale
Catégorie:
Fonctions Windows API
Hi Cetin,
Thanks for your comments. Yes both drives are NTFS, the only difference being that C: is the boot drive. If I modify the the section of code that checks for the volunmeSerial being > 0, the actual number returned is negative. I'm not sure if this is an errro return or the actual volume serial.
Regards
Doug Johnston
>>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
Précédent
Suivant
Répondre
Voir le fil de ce thread
Voir le fil de ce thread à partir de ce message seulement
Voir tous les messages de ce thread
Voir tous les messages de ce thread à partir de ce message seulement