Basically, I'm looking to get the location of localapplicationdata so that I can read some information.
The full API call is Environment.SpecialFolder.LocalApplicationData
Can someone show me a quick example on how to make this call to a CONSOLE based windows application? I looked at the Win API made easy but those seem very complex to me because they are creating windows, etc. I don't need to do any of that, just using windows console mode.
edit: Just using
Code: Select all
Environ("USERPROFILE") + "\Local Settings\Application Data\MyApplication\ApplicationUsers\"
Will not work because Windows will localize "Local Settings" and "Application Data" on other language OSes, thus it cannot be hard coded and must be pulled via an API call.