Kernel32GetCurrentConsoleFont Method
Retrieves 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 GetCurrentConsoleFont(
IntPtr consoleOutput,
bool maximumWindow,
ref ConsoleFontInfo refConsoleFontInfo
)
<DllImportAttribute("kernel32.dll", SetLastError := true>]
Public Shared Function GetCurrentConsoleFont (
consoleOutput As IntPtr,
maximumWindow As Boolean,
ByRef refConsoleFontInfo As ConsoleFontInfo
) As Boolean
Dim consoleOutput As IntPtr
Dim maximumWindow As Boolean
Dim refConsoleFontInfo As ConsoleFontInfo
Dim returnValue As Boolean
returnValue = Kernel32.GetCurrentConsoleFont(consoleOutput,
maximumWindow, refConsoleFontInfo)
public:
[DllImportAttribute(L"kernel32.dll", SetLastError = true)]
static bool GetCurrentConsoleFont(
IntPtr consoleOutput,
bool maximumWindow,
ConsoleFontInfo% refConsoleFontInfo
)
[<DllImportAttribute("kernel32.dll", SetLastError = true)>]
static member GetCurrentConsoleFont :
consoleOutput : IntPtr *
maximumWindow : bool *
refConsoleFontInfo : ConsoleFontInfo 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.
- refConsoleFontInfo ConsoleFontInfo
-
A pointer to a ConsoleFontInfo 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.