Commit a470c0b0 authored by Kirill K. Smirnov's avatar Kirill K. Smirnov Committed by Alexandre Julliard

kernel32: Add stubs for [G|S]etConsoleDisplayMode.

parent 02a9b6ae
......@@ -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;
}
/* ====================================================================
*
......
......@@ -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
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment