A
Andrej Litowka
Hi All!
If anybody know, how I cann set an enviroment variable (with ANSI C) on
Windows similar like on Linux. I tried setenv, but the function doesn't work
correct on Windows - it sets env. variables only for calling process or
session (in my case, the program will called in cmd.exe), but I need its
global. There is no putenv on Windows, only _putenv and there is no _putenv
(and works correct - in my case, sets env. variables global for whole OS) as
well on Linux as on Windows.
Any help will be approtiate.
Thanks.
Andrey Litovka.
If anybody know, how I cann set an enviroment variable (with ANSI C) on
Windows similar like on Linux. I tried setenv, but the function doesn't work
correct on Windows - it sets env. variables only for calling process or
session (in my case, the program will called in cmd.exe), but I need its
global. There is no putenv on Windows, only _putenv and there is no _putenv
and then compile with -DWIN32, but I would use a funktion, that implements#if WIN32
#define putenv _putenv
#endif
(and works correct - in my case, sets env. variables global for whole OS) as
well on Linux as on Windows.
Any help will be approtiate.
Thanks.
Andrey Litovka.