Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
How to get the windows directory ?
Message
General information
Forum:
Visual FoxPro
Category:
Other
Miscellaneous
Thread ID:
00065888
Message ID:
00065898
Views:
36
>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
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform