On Monday, 25 February 2013 at 00:44:43 UTC, Steven Schveighoffer
wrote:
1. The file descriptor from stdin failed to come out, and
windows gives back a valid handle from GetStdHandle
2. The file descriptor is valid (0 or above), but
_fdToHandle/_get_osfhandle fails to get a valid handle
fileDescriptor is 0.
The handle is 3. GetStdHandle(STD_INPUT_HANDLE) is also 3.
3. We have a valid handle, but for some reason
SetHandleInformation fails.
Looks like it. Maybe you can't SetHandleInformation on standard
handles in Windows 7?