title: How to translate paths with environment variables (Eg. %temp%)
body: <p>I am searching for a winapi function to expand paths with environment variables.
  I have tried <code>GetFullPathName</code> but the result is weird: <code>"%appdata%\something"</code> becomes <code>"C:\&lt;path to directory of exe&gt;\%appdata%\something"</code>.</p>
  
  <p>How to do this correctly?</p>