(nonstandard quoting reformatted)

André Bleau wrote:
Corinna Vinschen wrote:
(*) and, funny enough, there's no API call in Win32 to return a DCWD.
There's just a call GetCurrentDirectory() which returns *the* CWD.
Which makes sense, given that the RTL_USER_PROCESS_PARAMETERS can only
store one CWD per process.

Well, this is not surprising, as there is no such thing as a DCWD in Windows. It is strictly a cmd thing. Try this: start 2 instances of cmd in parallel:
[snip]
The "DCWD" is clearly independant for each cmd.

Well... duh. getcwd() is process-independent, why shouldn't dcwd be also? Nor should this be surprising since dcwd is "implemented" using environment variables; the environment is also per-process.

--
Matthew
.rorrim a ot pu rotinom ruoy dloh ,egassem siht daer oT


--
Unsubscribe info:      http://cygwin.com/ml/#unsubscribe-simple
Problem reports:       http://cygwin.com/problems.html
Documentation:         http://cygwin.com/docs.html
FAQ:                   http://cygwin.com/faq/

Reply via email to