DISPLAYMODE STRUC
dmInfoLevel db 0 ;information level (must be zero)
dmReserved1 db ? ;reserved
dmDataLength dw ? ;length of remaining data, in bytes
dmFlags dw ? ;control flags
dmMode db ? ;display mode
dmReserved2 db ? ;reserved
dmColors dw ? ;number of colors
dmWidth dw ? ;screen width, in pixels
dmLength dw ? ;screen length, in pixels
dmColumns dw ? ;columns
dmRows dw ? ;rows
DISPLAYMODE ENDS
The DISPLAYMODE structure contains information about the current display mode of a screen device, such as number of colors, rows, and columns.
dmInfoLevel
Specifies the information level. This field must be zero.
dmReserved1
Reserved; do not use.
dmDataLength
Specifies the length, in bytes, of the remaining fields in the structure. This field should be 14.
dmFlags
Specifies the control flags. This field is 00h if intensity is off or 01h if intensity is on.
dmMode
Specifies the display mode. This field can be one of the following values:
Value | Meaning |
01h | Text mode |
02h | Graphics mode |
dmReserved2
Reserved; do not use.
dmColors
Specifies the number of colors available.
dmWidth
Specifies the screen width, in pixels. This field is used for graphics mode only.
dmLength
Specifies the screen length, in pixels. This field is used for graphics mode only.
dmColumns
Specifies the number of text columns.
dmRows
Specifies the number of text rows.
The number and type of display modes for a given screen device depend on the device type and the ANSI.SYS driver. For a list of display modes, see Section 4.3, “ANSI Escape Sequences.”
Function 440Ch Minor Code 5Fh Set Display Mode
Function 440Ch Minor Code 7Fh Get Display Mode