On 31/12/04 16:15:53, Tor Lillqvist wrote:
Yup, that's what the code I have been tinkering with for some hours now does... First call _wputenv(), to update MSVCRT's environ (and _wenviron). _wputenv() also calls SetEnvironmentVariableW() but I don't trust it necessarily gets it right (reading the C runtime's source to figure out what happens is rather hairy with all the ifdefs), so then g_setenv() calls SetEnvironmentVariableW() itself.
Might have known you'd be way ahead of me :-) Nice one, Tor. Ali.