Note
Access to this page requires authorization. You can try signing in or changing directories.
Access to this page requires authorization. You can try changing directories.
Sets the environment strings of the calling process (both the system and the user environment variables) for the current process.
Syntax
BOOL SetEnvironmentStringsW(
LPWCH NewEnvironment
);
Parameters
NewEnvironment
The environment variable string using the following format:
Var1=Value1\0
Var2=Value2\0
Var3=Value3\0
...
VarN=ValueN\0\0
Return value
If the function succeeds, the return value is nonzero.
If the function fails, the return value is zero. To get extended error information, call GetLastError.
Requirements
| Requirement | Value |
|---|---|
| Minimum supported client | Windows XP [desktop apps | UWP apps] |
| Minimum supported server | Windows Server 2003 [desktop apps | UWP apps] |
| Header | processenv.h |
| Library | kernel32.lib |
| DLL | kernel32.dll |