I am trying to set an environment variable in NT using the SetEnvironmentVariable(name, value) function and when I execute the code, it doesn't change the variable value. I have done what it says in the KB, including declaring the function in my module, and calling the function in my executed part of my code. Is there another way I should be doing this?

Thanks in advance for any help.
Ryan