Here is the edited patch file. On Thursday, December 6, 2018, Liu Hao <[email protected]> wrote: > 在 2018/12/6 上午3:39, Biswapriyo Nath 写道: >> Yes I've tested that patch with my repository >> https://github.com/Biswa96/WslReverse with msys2 toolchain. I can not >> understand what you mean by that error. I've compiled that repository in >> Windows 64bit with `gcc -Wall` command in that makefile. >> >> Thank you for your reply <3 > > It's probably that `NTDDI_WIN10_RS5` is replaced with the constant zero. > > You may want to look into other headers for how we deal with such > things, most of which are hardcoded as constant such as `0x0601`, > `0x0A02`, and so on. > > -- > Best regards, > LH_Mouse > >
From 54a2ff165a02080a53cfccdad76421174a5cdac8 Mon Sep 17 00:00:00 2001 From: Biswa96 <[email protected]> Date: Thu, 6 Dec 2018 20:46:27 +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 | 13 +++++++++++++ 1 file changed, 13 insertions(+) diff --git a/mingw-w64-headers/include/wincon.h b/mingw-w64-headers/include/wincon.h index cc75123a..7e88ce5f 100644 --- a/mingw-w64-headers/include/wincon.h +++ b/mingw-w64-headers/include/wincon.h @@ -377,6 +377,19 @@ WINBASEAPI WINBOOL WINAPI SetCurrentConsoleFontEx( PCONSOLE_FONT_INFOEX lpConsoleCurrentFontEx ); +#if (NTDDI_VERSION >= 0x0A000006) + +/* CreatePseudoConsole Flags */ +#define PSEUDOCONSOLE_INHERIT_CURSOR 1 + +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
