Wobei man das ganz bestimmt im
MSDN hätte nachlesen können.
Zitat:
A null-terminated string that contains unexpanded references to environment variables (for example, "%PATH%"). It will be a
Unicode or
ANSI string depending on whether you use the
Unicode or
ANSI functions. To expand the environment variable references, use the ExpandEnvironmentStrings function.