This function sets the value of an environment variable for the current process.
BOOL SetEnvironmentVariable( LPCSTR lpcszName, LPCSTR lpcszValue )
TRUE for success
EX1
// usage: // set_environment_str test "A new string for testing"; // show_environment_str test; void SetEnvironmentVariable_ex1(string strName, string strValue) { if(SetEnvironmentVariable(strName, strValue)) return; out_str("error calling SetEnvironmentVariable"); }
GetEnvironmentVariable
origin.h