replacing getenv/setenv on Windows - ticket 2636
jaltman at MIT.EDU
Thu Sep 21 21:28:28 EDT 2006
Sets the contents of the specified environment variable for the current
BOOL WINAPI SetEnvironmentVariable(
[in] The name of the environment variable. The operating system creates
the environment variable if it does not exist and lpValue is not NULL.
[in] The contents of the environment variable. The total size of the
environment block for a process may not exceed 32,767 characters. For
more information, see Environment Variables.
If this parameter is NULL, the variable is deleted from the current
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.
This function has no effect on the system environment variables or the
environment variables of other processes.
More information about the krbdev