DISPLAYMODEINFO


include vmd.inc

DISPLAYMODEINFO Struc
wSize                       dw ?  ;size of structure, in bytes
wFlags                      dw ?  ;see below
DMI_Virtual_Cursor_Maximum  db (SIZE Point_Struc) DUP (?)  ;see below
XChar                       db ?  ;width, in pixels, of character cells
YChar                       db ?  ;height, in pixels, of character cells
DMI_Cell_Dimensions         db (SIZE Point_Struc) DUP (?)  ;see below
cBitsPerPixel               db ?  ;bits-per-pixel ratio
wPageSize                   dw ?  ;size, in bytes, of each video page 
MaxBlocks                   db ?  ;maximum number of cursor blocks
XCursorMax                  db ?  ;see below
YCursorMax                  db ?  ;see below
bMaxTrail                   db ?  ;see below
cDrawPages                  db ?  ;see below
DISPLAYMODEINFO Ends

Contains information about the current video mode.

wFlags

One of the following values:

Value

Meaning

MI_COLORCURSOR

Color cursors are supported.

MI_GRAPHICSCURSOR

Display is currently in graphics mode.

MI_NOCURSOR

No mouse cursor supported.


DMI_Virtual_Cursor_Maximum

Address of a Point_Struc structure that contains the maximum horizontal and vertical screen coordinates for the current video mode.

DMI_Cell_Dimensions

Dimensions, in pixels, of a character cell in the current video mode.

xCursorMax and yCursorMax

Maximum width and height of a graphics cursor.

bMaxTrail

Maximum length of the cursor trail, or 0 if cursor trails are not supported.

cDrawPages

Number of pages of video memory supported by the video adapter in the current video mode.

See also Point_Struc