win32console
.AttachConsole
AttachConsole(
ProcessId
)
Attaches to console of another process
Parameters
ProcessId
: int
Pid of another process, or ATTACH_PARENT_PROCESS
Comments
Calling process must not already be attached to another console