Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Hard disk serial number
Message
General information
Forum:
Visual FoxPro
Category:
Windows API functions
Miscellaneous
Thread ID:
00268851
Message ID:
00271048
Views:
20
Hi Borislav. I think you wanted to send that to David Bower. He was the one asking the question.

>I use the following function:
>
>
>FUNCTION GetVolumNum
>
> LPARAMETERS driv_lett && The drive
> DECLARE GetVolumeInformation IN WIN32API AS GetVolume;
> STRING @DriveLett, STRING @VolumName, INTEGER VolumSize,;
> INTEGER @VolumNumb, INTEGER @FileLen, INTEGER @SysFlags,;
> STRING @FileType, INTEGER FileSystemLen
>
> LOCAL m_drv, m_getdrv, nvolum, xxvolum, asd
>
> DECLARE mm_plus[2]
> mm_plus[1] = ":"
> mm_plus[2] = "\"
> FOR asd = LEN(driv_lett) TO 2
> driv_lett = driv_lett + mm_plus[asd] && You must specify
> NEXT &&the root directory
>
> m_getdrv = SPACE(11)
> nvolum = 11
>
> xxVolum = 0
> GetVolume(@driv_lett,@m_getdrv,11,@xxVolum,0,0,"",0)
>
>RETURN xxVolum
>
>
>HTH
>Boris
Previous
Reply
Map
View

Click here to load this message in the networking platform