AttachConsole function kernel32

int AttachConsole(
  1. int dwProcessId
)

Attaches the calling process to the console of the specified process.

BOOL AttachConsole(
  _In_ DWORD dwProcessId
);

Implementation

int AttachConsole(int dwProcessId) => _AttachConsole(dwProcessId);