From: huott AT pinebush DOT com (Ed Huott) Subject: Re: Sorting environment 10 Apr 1997 17:18:20 -0700 Approved: cygnus DOT gnu-win32 AT cygnus DOT com Distribution: cygnus Message-ID: <199704102154.RAA18624.cygnus.gnu-win32@sol.pinebush.com> Original-To: Jon Thackray Original-cc: Jim Balter , gnu-win32 AT cygnus DOT com In-reply-to: Your message of "Thu, 10 Apr 1997 12:26:25 -0000." <20894 DOT 9704101126 AT dedekind DOT cam DOT harlequin DOT co DOT uk> Original-Sender: owner-gnu-win32 AT cygnus DOT com In message <20894 DOT 9704101126 AT dedekind DOT cam DOT harlequin DOT co DOT uk>, Jon Thackray writes : >Quoting from the Oct 96 MSDN docs for CreateProcess, near the end of the >"Remarks" section: > > If the current directory on drive C is \MSVC\MFC, there is an > environment variable called =C: whose value is C:\MSVC\MFC. As noted in > the previous description of lpEnvironment, such current directory > information for a system's drives does not automatically propagate to a > new process when the CreateProcess function's lpEnvironment parameter is > non-NULL. An application must manually pass the current directory > information to the new process. To do so, the application must > explicitly create the =X environment variable strings, get them into > alphabetical order (because Windows NT and Windows 95 use a sorted > environment), and then put them into the environment block specified by > lpEnvironment. Typically, they will go at the front of the environment > block, due to the previously mentioned environment block sorting. Wow! And they call the Unix system arcane!!! :-) - For help on using this list (especially unsubscribing), send a message to "gnu-win32-request AT cygnus DOT com" with one line of text: "help".