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

This commit is contained in:
Kirill K. Smirnov 2008-06-26 21:14:41 +04:00 committed by Alexandre Julliard
parent 02a9b6ae2e
commit a470c0b017
2 changed files with 29 additions and 2 deletions

View File

@ -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;
}
/* ====================================================================
*

View File

@ -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