AllocConsole
Allocates a console for the calling process.
Module: Windows
Microsoft documentation: AllocConsole
Signature
rux
func AllocConsole() -> bool32;Returns
bool32 — nonzero on success or zero on failure. Call GetLastError after failure.
Description
A process can be associated with at most one console. After allocation, obtain the console handles with GetStdHandle.
See also
Console— console API overviewGetStdHandle— retrieve a standard device handle