The GetConsoleDisplayMode function retrieves the display mode of the current console.
Declare Function GetConsoleDisplayMode Lib "kernel32" (lpModeFlags As Long) As Long
|Operating Systems Supported|
|Requires Windows XP or later; Win9x/ME: Not supported|
|· lpModeFlags |
[out] Display mode of the console. This parameter can be one or more of the following values.
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.
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.
|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.