StrokeSeg 1.0.0
Loading...
Searching...
No Matches
consoleAllocator.h File Reference

Header file for console allocation functions. This file contains declarations for functions that allocate a console for the application. More...

This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Functions

int allocateConsole (wchar_t const *consoleTitle=L"")
 Allocates a console for the application. This function creates a new console for the application, allowing it to use standard input/output streams. It also redirects the standard input, output, and error streams to the console.

Detailed Description

Header file for console allocation functions. This file contains declarations for functions that allocate a console for the application.

Author
Florent LERAY
Date
2023-10-01
Version
1.0

Definition in file consoleAllocator.h.

Function Documentation

◆ allocateConsole()

int allocateConsole ( wchar_t const * consoleTitle = L"")

Allocates a console for the application. This function creates a new console for the application, allowing it to use standard input/output streams. It also redirects the standard input, output, and error streams to the console.

Returns
0 if a new console was successfully allocated, 1 if the console was attached to the parent process, -1 if the console could not be allocated or attached.

Definition at line 3 of file consoleAllocator.cpp.