A | B | C |  D | E | F |  G | H | I |  J | K | L |  M | N | O |  P | Q | R |  S | T | U |  V | W | X |  Y | Z



GetConsoleDisplayMode

The GetConsoleDisplayMode function retrieves the display mode of the current console.

VB4-32,5,6
Declare Function GetConsoleDisplayMode Lib "kernel32" (lpModeFlags As Long) As Long

Operating Systems Supported
Requires Windows XP or later; Win9x/ME: Not supported

Library
Kernel32

Parameter Information
- lpModeFlags
[out] Display mode of the console. This parameter can be one or more of the following values.
CONSOLE_FULLSCREEN
Full-screen console. The console is in this mode as soon as the window is maximized. At this point, the transition to full-screen mode can still fail.
CONSOLE_FULLSCREEN_HARDWARE
Full-screen console communicating directly with the video hardware. This mode is set after the console is in CONSOLE_FULLSCREEN mode to indicate that the transition to full-screen mode has completed.

Return Values
If the function succeeds, the return value is nonzero.

If the function fails, the return value is zero. To get extended error information, call GetLastError.

Last update: 07 April 2006