General information
Category:
Windows API functions
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
Previous
Next
Reply
View the map of this thread
View the map of this thread starting from this message only
View all messages of this thread
View all messages of this thread starting from this message only