attachconsole (kernel32)
Last changed: LNK1123-84.26.94.125

.
Summary
TODO - a short description

C# Signature:

  [DllImport("kernel32", SetLastError = true)]
  static extern bool AttachConsole(uint dwProcessId);

VB Signature:

  Public Declare Auto Function AttachConsole Lib "kernel32" ( _
    ByVal dwProcessId As UInt32) As Boolean

User-Defined Types:

None.

Notes:

Warning, this will not work on Windows 2000, requires Windows XP or newer.

See also AllocConsole

Tips & Tricks:

Use -1 for dwProcessId to attach to the parent process console.

Sample Code:

Please add some!

Alternative Managed API:

Do you know one? Please contribute it!

Documentation