Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Hard disk serial number
Message
Information générale
Forum:
Visual FoxPro
Catégorie:
Fonctions Windows API
Divers
Thread ID:
00268851
Message ID:
00271048
Vues:
24
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
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform