Kernel32GetCurrentConsoleFontEx Method
Retrieves extended information about the current console font.
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 GetCurrentConsoleFontEx(
IntPtr consoleOutput,
bool maximumWindow,
ref ConsoleFontInfoEx refConsoleFontInfoEx
)
<DllImportAttribute("kernel32.dll", SetLastError := true>]
Public Shared Function GetCurrentConsoleFontEx (
consoleOutput As IntPtr,
maximumWindow As Boolean,
ByRef refConsoleFontInfoEx As ConsoleFontInfoEx
) As Boolean
Dim consoleOutput As IntPtr
Dim maximumWindow As Boolean
Dim refConsoleFontInfoEx As ConsoleFontInfoEx
Dim returnValue As Boolean
returnValue = Kernel32.GetCurrentConsoleFontEx(consoleOutput,
maximumWindow, refConsoleFontInfoEx)
public:
[DllImportAttribute(L"kernel32.dll", SetLastError = true)]
static bool GetCurrentConsoleFontEx(
IntPtr consoleOutput,
bool maximumWindow,
ConsoleFontInfoEx% refConsoleFontInfoEx
)
[<DllImportAttribute("kernel32.dll", SetLastError = true)>]
static member GetCurrentConsoleFontEx :
consoleOutput : IntPtr *
maximumWindow : bool *
refConsoleFontInfoEx : ConsoleFontInfoEx byref -> bool
No code example is currently available or this language may not be supported.
- consoleOutput IntPtr
-
A handle to the console screen buffer. The handle must have the GENERIC_READ access right.
- maximumWindow Boolean
-
If this parameter is , font information is retrieved for the maximum window size.
If this parameter is , font information is retrieved for the current window size.
- refConsoleFontInfoEx ConsoleFontInfoEx
-
A pointer to a ConsoleFontInfoEx structure that receives the requested font information.
Boolean
If the function succeeds, the return value is
.
If the function fails, the return value is
.
To get extended error information, call
GetLastWin32Error.