On 3-12-2010 13:22, Thaddy wrote:
---
CreateFile;
/lpFileName/
Use the CONIN$ value to specify console input.
Use the CONOUT$ value to specify console output.
CONIN$ gets a handle to the console input buffer, even if the
*SetStdHandle*
<http://msdn.microsoft.com/en-us/library/ms686244%28v=VS.85%29.aspx>
function redirects the standard input handle. To get the standard input
handle, use the *GetStdHandle*
<http://msdn.microsoft.com/en-us/library/ms683231%28v=VS.85%29.aspx>function.
CONOUT$ gets a handle to the active screen buffer, even if
*SetStdHandle*
<http://msdn.microsoft.com/en-us/library/ms686244%28v=VS.85%29.aspx>redirects
the standard output handle. To get the standard output handle, use
*GetStdHandle*
<http://msdn.microsoft.com/en-us/library/ms683231%28v=VS.85%29.aspx>.
//
This behaveour is broken in FPC without intervention from the programmer
in a very "unusual" way. (i.e. without hacks)
_______________________________________________
fpc-devel maillist - fpc-devel@lists.freepascal.org
http://lists.freepascal.org/mailman/listinfo/fpc-devel