AttachConsole function Null safety kernel32

int AttachConsole(
  1. int dwProcessId
)

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

BOOL WINAPI AttachConsole(
  _In_ DWORD dwProcessId
);

Implementation

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