GetConsoleTitle function kernel32

int GetConsoleTitle(
  1. Pointer<Utf16> lpConsoleTitle,
  2. int nSize
)

Retrieves the title for the current console window.

DWORD GetConsoleTitleW(
  _Out_ LPTSTR lpConsoleTitle,
  _In_  DWORD  nSize
);

Implementation

int GetConsoleTitle(Pointer<Utf16> lpConsoleTitle, int nSize) =>
    _GetConsoleTitle(lpConsoleTitle, nSize);