FreeConsole

  BOOL FreeConsole(VOID)    

The FreeConsole function frees the current console.

Parameters

This function has no parameters.

Return Value

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.

Comments

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.

See Also

AllocConsole