<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
  <head>
    <meta content="text/html; charset=ISO-8859-1"
      http-equiv="Content-Type">
  </head>
  <body bgcolor="#ffffff" text="#000000">
    On 3-12-2010 13:22, Thaddy wrote:<br>
    <br>
    ---<br>
    <br>
    CreateFile;<br>
    <table>
      <tbody>
        <tr>
          <td>
            <p><em>lpFileName</em></p>
          </td>
          <td>
            <p>Use the CONIN$ value to specify console input.</p>
            <p>Use the CONOUT$ value to specify console output.</p>
            <p>CONIN$ gets a handle to the console input buffer, even if
              the <a
href="http://msdn.microsoft.com/en-us/library/ms686244%28v=VS.85%29.aspx"><strong>SetStdHandle</strong></a>
              function redirects the standard input handle. To get the
              standard input handle, use the <a
href="http://msdn.microsoft.com/en-us/library/ms683231%28v=VS.85%29.aspx"><strong>GetStdHandle</strong></a>function.</p>
            <p>CONOUT$ gets a handle to the active screen buffer, even
              if <a
href="http://msdn.microsoft.com/en-us/library/ms686244%28v=VS.85%29.aspx"><strong>SetStdHandle</strong></a>redirects
              the standard output handle. To get the standard output
              handle, use <a
href="http://msdn.microsoft.com/en-us/library/ms683231%28v=VS.85%29.aspx"><strong>GetStdHandle</strong></a>.</p>
          </td>
        </tr>
        <tr>
          <td>
            <p><em></em></p>
            <br>
          </td>
        </tr>
      </tbody>
    </table>
    <br>
    This behaveour is broken in FPC without intervention from the
    programmer in a very "unusual" way. (i.e. without hacks)<br>
  </body>
</html>