| Index | Manual | Download | Source | Macros | Embedded word Case ins.
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 identifiers.
    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

    ; Error codes for WinExec and ShellExecute.
    SE_ERR_FNF              =  2  ; file not found
    SE_ERR_PNF              =  3  ; path not found
    SE_ERR_ACCESSDENIED     =  5  ; access denied
    SE_ERR_OOM              =  8  ; out of memory
    SE_ERR_SHARE            = 26
    SE_ERR_ASSOCINCOMPLETE  = 27
    SE_ERR_DDETIMEOUT       = 28
    SE_ERR_DDEFAIL          = 29
    SE_ERR_DDEBUSY          = 30
    SE_ERR_NOASSOC          = 31
    SE_ERR_DLLNOTFOUND      = 32

     ENDHEAD winscon

▲Back to the top▲