Add pseudo console APIs for Windows 10 RS5 and above https://docs.microsoft.com/en-us/windows/console/pseudoconsoles
Notes: * Kernel32.dll import library need to be updated. * There is another **undocumented** API named `CreatePseudoConsoleAsUser()`. If you want I can add that.
From 7bb9611452d75b7d398762c6f47720bf28a31789 Mon Sep 17 00:00:00 2001 From: Biswa96 <[email protected]> Date: Tue, 4 Dec 2018 19:25:39 +0530 Subject: [PATCH] include/wincon.h: Add new PeusoConsole APIs for Windows 10 RS5 Signed-off-by: Biswapriyo Nath <[email protected]> --- mingw-w64-headers/include/wincon.h | 25 +++++++++++++++++++++++++ 1 file changed, 25 insertions(+) diff --git a/mingw-w64-headers/include/wincon.h b/mingw-w64-headers/include/wincon.h index cc75123a..0b520cc6 100644 --- a/mingw-w64-headers/include/wincon.h +++ b/mingw-w64-headers/include/wincon.h @@ -377,6 +377,31 @@ WINBASEAPI WINBOOL WINAPI SetCurrentConsoleFontEx( PCONSOLE_FONT_INFOEX lpConsoleCurrentFontEx ); +#if (NTDDI_VERSION >= NTDDI_WIN10_RS5) + +#define PSEUDOCONSOLE_INHERIT_CURSOR (0x1) + +typedef VOID* HPCON; + +WINBASEAPI HRESULT WINAPI CreatePseudoConsole( + COORD size, + HANDLE hInput, + HANDLE hOutput, + DWORD dwFlags, + HPCON* phPC +); + +WINBASEAPI HRESULT WINAPI ResizePseudoConsole( + HPCON hPC, + COORD size +); + +WINBASEAPI VOID WINAPI ClosePseudoConsole( + HPCON hPC +); + +#endif /* NTDDI_WIN10_RS5 */ + #endif /* WINAPI_FAMILY_PARTITION(WINAPI_PARTITION_DESKTOP) */ #if WINAPI_FAMILY_PARTITION(WINAPI_PARTITION_APP) && defined(WINSTORECOMPAT) -- 2.19.2
_______________________________________________ Mingw-w64-public mailing list [email protected] https://lists.sourceforge.net/lists/listinfo/mingw-w64-public
