AllAPI Network - The KPD-Team

 
Allapi Network
 API-Guide
 ApiViewer

 API List

 
API Resources
 Tips & Tricks
 VB Tutorials
 Error Lookup
 
Misc Stuff
 VB examples
 VB Tools
 VB Links
 Top Downloads
 
This Site
 Search Engine
 Contact Form
 

Donate to AllAPI.net

GetConsoleFontSize

The GetConsoleFontSize function retrieves the size of the font used by the specified console screen buffer.

VB4-32,5,6
Declare Function GetConsoleFontSize Lib "kernel32" (ByVal hConsoleOutput As Long, ByVal nFont As Long) As COORD

Operating Systems Supported
Requires Windows XP or later; Win9x/ME: Not supported

Library
Kernel32

Parameter Information
hConsoleOutput
[in] Handle to a console screen buffer. The handle must have GENERIC_READ access.

nFont
[in] Index of the font whose size is to be retrieved. This index is obtained by calling the GetCurrentConsoleFont function.

Return Values
If the function succeeds, the return value is a COORD structure that contains the width and height of each character in the font. The X member contains the width, while the Y member contains the height.

If the function fails, the width and the height are zero. To get extended error information, call GetLastError.

Examples

Related Functions

 

 


Copyright © 1998-2007, The Mentalis.org Team - Privacy statement
Did you find a bug on this page? Tell us!
This site is located at http://allapi.mentalis.org/