[DllImport("kernel32", SetLastError = true)]
static extern bool AttachConsole(uint dwProcessId);
Public Declare Auto Function AttachConsole Lib "kernel32" ( _
ByVal dwProcessId As UInt32) As Boolean
None.
Warning, this will not work on Windows 2000, requires Windows XP or newer.
Use -1 for dwProcessId to attach to the parent process console.
Please add some!
Do you know one? Please contribute it!