SetEnvVariable sets the specified environment variable to a certain value. The environment variable can also be elongated by specifying the command option flag fAppend or fPrepend. Under Windows NT, the environment variables affected are the ones specified in the registry. Under Windows 95, autoexec.bat is modified to set the values.
Arguments
szName
Specifies the name of the environment variable.
szValue
Specifies the new value that you want to associate with the environment variable.
cmo
Specifies the command option flag. You can use fOverwrite, fAppend, or fPrepend.
Return Value
If the function succeeds, it returns fTrue.
If the function fails, it returns fFalse.