From a470c0b017dad71506bc173a0bd03a6b7f329c62 Mon Sep 17 00:00:00 2001 From: "Kirill K. Smirnov" Date: Thu, 26 Jun 2008 21:14:41 +0400 Subject: [PATCH] kernel32: Add stubs for [G|S]etConsoleDisplayMode. --- dlls/kernel32/console.c | 27 +++++++++++++++++++++++++++ dlls/kernel32/kernel32.spec | 4 ++-- 2 files changed, 29 insertions(+), 2 deletions(-) diff --git a/dlls/kernel32/console.c b/dlls/kernel32/console.c index a04ff262b7..a985060685 100644 --- a/dlls/kernel32/console.c +++ b/dlls/kernel32/console.c @@ -2544,6 +2544,33 @@ BOOL WINAPI AttachConsole(DWORD dwProcessId) return TRUE; } +/****************************************************************** + * GetConsoleDisplayMode (KERNEL32.@) + */ +BOOL WINAPI GetConsoleDisplayMode(LPDWORD lpModeFlags) +{ + TRACE("semi-stub: %p\n", lpModeFlags); + /* It is safe to successfully report windowed mode */ + *lpModeFlags = 0; + return TRUE; +} + +/****************************************************************** + * SetConsoleDisplayMode (KERNEL32.@) + */ +BOOL WINAPI SetConsoleDisplayMode(HANDLE hConsoleOutput, DWORD dwFlags, + COORD *lpNewScreenBufferDimensions) +{ + TRACE("(%p, %x, (%d, %d))\n", hConsoleOutput, dwFlags, + lpNewScreenBufferDimensions->X, lpNewScreenBufferDimensions->Y); + if (dwFlags == 1) + { + /* We cannot switch to fullscreen */ + return FALSE; + } + return TRUE; +} + /* ==================================================================== * diff --git a/dlls/kernel32/kernel32.spec b/dlls/kernel32/kernel32.spec index 6fb14bbcbf..6a24e333fc 100644 --- a/dlls/kernel32/kernel32.spec +++ b/dlls/kernel32/kernel32.spec @@ -457,7 +457,7 @@ @ stub GetConsoleCommandHistoryW @ stdcall GetConsoleCursorInfo(long ptr) @ stub GetConsoleCursorMode -@ stub GetConsoleDisplayMode +@ stdcall GetConsoleDisplayMode(ptr) @ stub GetConsoleFontInfo @ stub GetConsoleFontSize @ stub GetConsoleHardwareState @@ -964,7 +964,7 @@ @ stdcall SetConsoleCursorInfo(long ptr) @ stub SetConsoleCursorMode @ stdcall SetConsoleCursorPosition(long long) -@ stub SetConsoleDisplayMode +@ stdcall SetConsoleDisplayMode(long long ptr) @ stub SetConsoleFont @ stub SetConsoleHardwareState @ stub SetConsoleIcon -- 2.32.0.93.g670b81a890