Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Windows System Directory Path
Message
General information
Forum:
Visual FoxPro
Category:
Windows API functions
Miscellaneous
Thread ID:
00776268
Message ID:
00776275
Views:
26
>>Please can somebody help me to get a function to get the path to the WINDOWS SYSTEM DIRECTORY for all Windows version (Windows 98 until XP).
>>SYS(2004) brings me depending on the Windows version C:\program files\.....
>>
>>I would need to address the REAL WINDOWS system or system32 directory.
>>Thank you so much for your help.
>>
>>Johann Pietschnig
>>pietschnig@usa.com
>
>There should be a listing for the GetSystemDirectory() function, with example, in the UT API section.

Ah, here's the the full listing:
DECLARE INTEGER GetSystemDirectory IN Win32API;
 STRING @lpbuffer, INTEGER uSize
lcbuffer = SPACE(261) && MAX_PATH + 1
lnresult = GetSystemDirectory(@lcbuffer, 261)
? LEFT(lcbufferm, lnresult)
George

Ubi caritas et amor, deus ibi est
Previous
Reply
Map
View

Click here to load this message in the networking platform