|
From: Kohn E. D. <em...@cs...> - 2002-05-01 15:12:39
|
On Tue, 30 Apr 2002, Phillip Susi wrote: > 1, and 2 are reserved for stdin/out/err, but NT has opaque HANDLEs to all > sorts of objects, not just files, and there are no reserved HANDLE values > for stdin/out/err.BTW: win32 apps can open the CON or CONIN$ or CONOUT$ > files to get a handle to their console for IO, but they still get the > console, even if stdin or out has been redirected.I think that this > should be fixed in ReactOS to return the handle that stdin/out has been > redirected to. > Why do you want to do this? You may break existing programs if you do this. If you want to access the redirected stdin/stdout/stderr, use the GetStdHandle() function. Emil |