General information
Category:
Windows API functions
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
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