Closed cher-nov closed 7 years ago
Currently this works as follows:
Here we reinventing the wheel because in Windows CreateProcess() and similar functions have nice lpEnvironment argument exactly for this purpose.
CreateProcess()
lpEnvironment
So the proposal is in removing current bulky code and use this feature.
As it turned out, it's a common approach in WinAPI. See Example 2 here: https://msdn.microsoft.com/en-us/library/ms682009(v=vs.85).aspx
Currently this works as follows:
Here we reinventing the wheel because in Windows
CreateProcess()
and similar functions have nicelpEnvironment
argument exactly for this purpose.So the proposal is in removing current bulky code and use this feature.