I am looking for a winapi function to extend paths with environment variables. I tried GetFullPathName , but the result is strange: "%appdata%\something" becomes "C:\<path to directory of exe>\%appdata%\something" .
GetFullPathName
"%appdata%\something"
"C:\<path to directory of exe>\%appdata%\something"
How to do it right?
Try ExpandEnvironmentStrings .
ExpandEnvironmentStrings
Because I need it with C # /. NET: Environment.ExpandEnvironmentVariables Method
I hope this helps someone.