BOOL FreeConsole(VOID) |
The FreeConsole function frees the current console.
This function has no parameters.
The return value is TRUE if the function was successful, or FALSE if an error occurred. Use the GetLastError function to obtain extended error information.
This function frees the console for the current process. If other processes share the console, the console is not destroyed, but the current process may not reference it.
FreeConsole can be used to detach a process from its inherited console if it wants to use AllocConsole to create a new console.
AllocConsole