From: Austin English Subject: [PATCH 1/2] kernel32: add GetConsoleFontInfo stub Message-Id: Date: Mon, 18 Apr 2016 20:24:52 -0500 For https://bugs.winehq.org/show_bug.cgi?id=40466 Information taken from http://blogs.microsoft.co.il/pavely/2009/07/23/changing-console-fonts/ -- -Austin From 7f8769284b80bec25efc644a344af720b8e7fe02 Mon Sep 17 00:00:00 2001 From: Austin English Date: Mon, 18 Apr 2016 20:20:50 -0500 Subject: [PATCH 1/2] kernel32: add GetConsoleFontInfo stub Signed-off-by: Austin English --- dlls/kernel32/console.c | 7 +++++++ include/wincon.h | 8 ++++++++ 2 files changed, 15 insertions(+) diff --git a/dlls/kernel32/console.c b/dlls/kernel32/console.c index 60e38bc..aa8f60b 100644 --- a/dlls/kernel32/console.c +++ b/dlls/kernel32/console.c @@ -3367,3 +3367,10 @@ BOOL WINAPI SetCurrentConsoleFontEx(HANDLE hConsole, BOOL maxwindow, CONSOLE_FON SetLastError(ERROR_CALL_NOT_IMPLEMENTED); return FALSE; } + +BOOL WINAPI GetConsoleFontInfo(HANDLE hOutput, BOOL bMaximize, DWORD numFonts, CONSOLE_FONT *info) +{ + FIXME("(%p %d %u %p): stub!\n", hOutput, bMaximize, numFonts, info); + SetLastError(ERROR_CALL_NOT_IMPLEMENTED); + return FALSE; +} diff --git a/include/wincon.h b/include/wincon.h index 8f4d54c..de4ab54 100644 --- a/include/wincon.h +++ b/include/wincon.h @@ -109,6 +109,12 @@ typedef struct tagSMALL_RECT SHORT Bottom; } SMALL_RECT,*LPSMALL_RECT; +/* Undocumented */ +typedef struct _CONSOLE_FONT { + DWORD index; + COORD dim; +} CONSOLE_FONT; + typedef struct _CONSOLE_FONT_INFO { DWORD nFont; @@ -333,6 +339,8 @@ WINBASEAPI DWORD WINAPI GetConsoleAliasExesLengthW(VOID); WINBASEAPI UINT WINAPI GetConsoleCP(VOID); WINBASEAPI BOOL WINAPI GetConsoleCursorInfo( HANDLE,LPCONSOLE_CURSOR_INFO); WINBASEAPI BOOL WINAPI GetConsoleDisplayMode(LPDWORD); +/* Undocumented */ +WINBASEAPI BOOL WINAPI GetConsoleFontInfo(HANDLE, BOOL, DWORD, CONSOLE_FONT *); WINBASEAPI BOOL WINAPI GetConsoleHistoryInfo(LPCONSOLE_HISTORY_INFO); WINBASEAPI BOOL WINAPI GetConsoleInputExeNameA(DWORD,LPSTR); WINBASEAPI BOOL WINAPI GetConsoleInputExeNameW(DWORD,LPWSTR); -- 2.8.0.rc3