Type a page name and press Enter. You'll jump to the page if it exists, or you can create it if it doesn't.
To create a page in a module other than kernel32, prefix the name with the module name and a period.
Declare Function SetCurrentConsoleFontEx Lib "kernel32.dll" (TODO) As TODO
User-Defined Types:
[StructLayout(LayoutKind.Sequential)]
public struct COORD
{
public short X;
public short Y;
public COORD(short X, short Y)
{
this.X = X;
this.Y = Y;
}
};
[StructLayout(LayoutKind.Sequential)]
public struct CONSOLE_FONT_INFO_EX
{
public uint cbSize;
public uint nFont;
public COORD dwFontSize;
public ushort FontFamily;
public ushort FontWeight;
fixed char FaceName[32]; // this will require the assembly to be unsafe
}
Or alternatively if you can't afford unsafe assemblies
[StructLayout(LayoutKind.Sequential)]
public struct CONSOLE_FONT_INFO_EX
{
public uint cbSize;
public uint nFont;
public COORD dwFontSize;
public ushort FontFamily;
public ushort FontWeight;
// Untested, added during 1-pass copy & paste of windows console fuctions
When on Windows XP, kernel32 does NOT support SetCurrentConsoleFontEx and cannot be used. It will throw an error saying entry point not found because of this.
Minimum supported client: Windows Vista
Tips & Tricks:
Please add some!
Sample Code:
Please add some!
This function allows to set the font dimensions on consoles.
9/26/2015 2:01:36 PM - -135.23.52.185
Please edit this page!
Do you have...
helpful tips or sample code to share for using this API in managed code?
corrections to the existing content?
variations of the signature you want to share?
additional languages you want to include?
Select "Edit This Page" on the right hand toolbar and edit it! Or add new pages containing supporting types needed for this API (structures, delegates, and more).