Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
GetSystemDirectory
Message
From
07/12/1999 14:16:55
 
 
To
All
General information
Forum:
Visual FoxPro
Category:
Windows API functions
Title:
GetSystemDirectory
Miscellaneous
Thread ID:
00299923
Message ID:
00299923
Views:
68
Hi,

I tried to find something in VFP that returns the Windows system directory (System or System32, depending), and gave up so I tried the following:

Declare GetSystemDirectory in kernel32 String,Integer
lcBuffer = SPACE(1024)
? GetSystemDirectory(@lcBuffer,1024)

Seems to work, but the call returns .T. rather than the length of the string returned. Since I'm new at the API stuff, can someone tell me if the usage above is correct? And is there a native VFP (some GetEnv call or other) to get the System directory?

Thanks,

Rod Poujade
Montreal, Canada
Rod Poujade
Next
Reply
Map
View

Click here to load this message in the networking platform