What is the equivalent of setenv in Windows?

  c++, environment-variables, setenv, windows

I am trying to find an equivalent for setenv to use in a C program. What I am trying to do is to modify the values of all the environment variables of the currently running process. I am trying to use putenv but it doesn’t change the variables` values in any way. What could I do?

Source: Windows Questions

LEAVE A COMMENT