Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
How to get the windows directory ?
Message
Information générale
Forum:
Visual FoxPro
Catégorie:
Autre
Divers
Thread ID:
00065888
Message ID:
00065898
Vues:
31
>Hi to all,
>which function (if exist) I have to use to obtain the Windows directory paht ( C:\windows or c:\win95 etc.) ?
>
>Thanks in advance
>
>PS: In C++ I've used the GetWindowsDirectory() of SDK

If you're more comfortable with the API, You can use the GetWindowsDirectory:

DECLARE INTEGER GetWindowsDirectory IN Win32API;
STRING @ReturnBuffer, INTEGER BufferSize

then

lcbuffer = SPACE(200)
lnbufsize = LEN(lcbuffer)

lnbufsize = GetWindowsDirectory(@lcbuffer, lnbufsize)

hth,

George
George

Ubi caritas et amor, deus ibi est
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform