Closes a pseudoconsole from the given handle.
void WINAPI ClosePseudoConsole( _In_ HPCON hPC );
A handle to an active pseudoconsole as opened by CreatePseudoConsole.
Upon closing a pseudoconsole, client applications attached to the session will be terminated as well.
A final painted frame may arrive on the
hOutput handle originally provided to CreatePseudoConsole when this API is called. It is expected that the caller will drain this information from the communication channel buffer and either present it or discard it. Failure to drain the buffer may cause the Close call to wait indefinitely until it is drained or the communication channels are broken another way.
|Minimum supported client||Windows 10 October 2018 Update (version 1809) [desktop apps only]|
|Minimum supported server||Windows Server 2019 [desktop apps only]|
|Header||ConsoleApi.h (via WinCon.h, include Windows.h)|
Submit and view feedback for