From: Corinna Vinschen on
Pavel A. wrote:
> Corinna,
>
> What Windows version are you testing on? Console windows have changed on NT
> 6 vs. NT 5.

My testcase shows the same results on XP as well as on W7.


Corinna

--
Corinna Vinschen
Cygwin Project Co-Leader
Red Hat
From: Corinna Vinschen on
Alexander Grigoriev wrote:
> I suppose DuplicateHandle uses a special code path to duplicate
> in-process-only handles, such as console. The remarks says "Console handles
> can be duplicated for use only in the same process". It won't bother to
> guess if a handle is for the current process; it needs GetCurrentProcess().

Perhaps, yes. It's an unfortunate asymmetry, though.


Corinna

--
Corinna Vinschen
Cygwin Project Co-Leader
Red Hat