Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
GetVolumeInformation()
Message
From
28/04/2001 18:55:52
 
 
To
26/04/2001 08:43:27
Cetin Basoz
Engineerica Inc.
Izmir, Turkey
General information
Forum:
Visual FoxPro
Category:
Windows API functions
Miscellaneous
Thread ID:
00500027
Message ID:
00501301
Views:
30
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
Map
View

Click here to load this message in the networking platform