EuroAssembler Index Manual Download Source Macros


Sitemap Links Forum Tests Projects

winscon.htm
Constants
Structures
CONSOLE_CURSOR_INFO
CONSOLE_FONT_INFOEX
CONSOLE_SCREEN_BUFFER_INFO

This file can be included to program for Windows written in EuroAssembler.

It declares the most often used constant symbols and structures used for
console subsystem of MS Windows Application Programming Interface (WinAPI),
as they were derived from header files in [WindowsSDK].

winscon HEAD
↑ CONSOLE_CURSOR_INFO
Information about a console cursor.
CONSOLE_CURSOR_INFO STRUC
.dwSize   D WORD
.bVisible D DWORD
  ENDSTRUC CONSOLE_CURSOR_INFO
↑ CONSOLE_SCREEN_BUFFER_INFO
Information about a console screen buffer.
CONSOLE_SCREEN_BUFFER_INFO STRUC
.Size.X              D WORD ; 80.
.Size.Y              D WORD ; 50.
.CursorPosition.X    D WORD ;  0.
.CursorPosition.Y    D WORD ;  0.
.Attributes          D WORD ; 0x0007 white on black.
.Window.Left         D WORD ; 0.
.Window.Top          D WORD ; 0.
.Window.Right        D WORD ; 79.
.Window.Bottom       D WORD ; 49.
.MaximumWindowSize.X D WORD ; 80.
.MaximumWindowSize.Y D WORD ; 300.
  ENDSTRUC CONSOLE_SCREEN_BUFFER_INFO
↑ CONSOLE_FONT_INFOEX
Extended information for a console font.
CONSOLE_FONT_INFOEX STRUC
.cbSize      D DWORD
.nFont       D DWORD
.FontSize.X  D WORD
.FontSize.Y  D WORD
.FontFamily  D DWORD
.FontWeight  D DWORD
.FaceName    D 32*U
  ENDSTRUC CONSOLE_FONT_INFOEX
↑ Constants
Encoding of constant symbols used in WinAPI.
; Standard file handles
INVALID_HANDLE_VALUE =  -1
STD_INPUT_HANDLE     = -10
STD_OUTPUT_HANDLE    = -11
STD_ERROR_HANDLE     = -12

; Text attributes flags
FOREGROUND_BLUE      = 0x0001
FOREGROUND_GREEN     = 0x0002
FOREGROUND_RED       = 0x0004
FOREGROUND_INTENSITY = 0x0008
BACKGROUND_BLUE      = 0x0010
BACKGROUND_GREEN     = 0x0020
BACKGROUND_RED       = 0x0040
BACKGROUND_INTENSITY = 0x0080
 ENDHEAD winscon

▲Back to the top▲