Kernel32GetConsoleDisplayMode Method
Sets the display mode of the specified console screen buffer.
Namespace: DevCase.Win32.NativeMethodsAssembly: DevCase.net48 (in DevCase.net48.dll) Version: 6.0.0.0 (6.0)
XMLNS for XAML: Not mapped to an xmlns.
[DllImportAttribute("Kernel32.dll", SetLastError = true)]
public static bool GetConsoleDisplayMode(
ref ConsoleDisplayMode refDisplayMode
)
<DllImportAttribute("Kernel32.dll", SetLastError := true>]
Public Shared Function GetConsoleDisplayMode (
ByRef refDisplayMode As ConsoleDisplayMode
) As Boolean
Dim refDisplayMode As ConsoleDisplayMode
Dim returnValue As Boolean
returnValue = Kernel32.GetConsoleDisplayMode(refDisplayMode)
public:
[DllImportAttribute(L"Kernel32.dll", SetLastError = true)]
static bool GetConsoleDisplayMode(
ConsoleDisplayMode% refDisplayMode
)
[<DllImportAttribute("Kernel32.dll", SetLastError = true)>]
static member GetConsoleDisplayMode :
refDisplayMode : ConsoleDisplayMode byref -> bool
No code example is currently available or this language may not be supported.
- refDisplayMode ConsoleDisplayMode
-
The display mode of the console.
Boolean
If the function succeeds, the return value is
.
If the function fails, the return value is
.
To get extended error information, call
GetLastWin32Error.