Replaces several folder names in a fully qualified path with their associated system environment string.
Syntax
BOOL WINAPI PathUnExpandSystemEnvStringsW (
LPCWSTR pwszPath,
LPWSTR pwszBuf,
UINT cchBuf
)
Parameters
- pwszPath
- A null terminated path to be unexpanded
- pwszBuf
- A pointer to a buffer that receives the unexpanded string
- cchBuf
- The number of characters in pwszBuf
Return Value
Returns TRUE if successful, FALSE if not.
Remarks
/* */This function is the same as PathUnExpandEnvStrings except that it only unexpands system environment variables (those expanded by ExpandEnvironmentStringsForUser(NULL, ...)).
This function is also known as _PathUnExpandSystemEnvStringsW@12.