[−][src]Function fenestroj::consoleapi::alloc_console
pub fn alloc_console() -> Result<(), ErrorCode>
Allocates a new console for the process and attaches to it.
A process can only be attached to one console at a time. A "console" process starts with one, but a "GUI" process does not.
If you try to allocate a console while your process is already attached to one this will fail.
See
AllocConsole