This structure is used in the following IOCTL fns:
440cH 5fH (set display mode)
440cH 7fH (query display mode)
DvRq 13H  (generic IOCTL for character devices)

The ANSI.SYS device driver uses this structure.

IoctlDisplayModeRec
Offset Size Contents
                                                                          
+0     1  bInfoLevel   must be 0
+1     1  res1         (reserved)
+2     2  wDataLen     14; Length of the following data, in bytes
+4     2  wFlags       flags: 0001H=bold background enabled
+6     1  bTxtGfx      mode:  01H = text mode
02H = graphics mode
+7     1  res2         (reserved--16-bit SVGA modes?)
+8     2  wColors      number of colors supported
+0aH    2  wWidth       screen width, in pixels (graphics modes)
+0cH    2  wHeight      screen height, in pixels  (graphics modes)
+0eH    2  wClms        screen columns (width, in character columns)
+10H    2  wRows        screen lines (height, in character rows)
18               length of an IoctlDisplayModeRec structure

bInfoLevel  must be set to 00H before invoking the fn
wDataLen  must be set to 0eH (14) before invoking the fn
wFlags  currently only one flag is defined:
0000H=normal treatment of Video Attribute bit 7 (makes the
foreground color blink; only seven background colors).
0001H=enable bold background; attribute bit 7 is part of
the 4-bit background color.
bTxtGfx  00H=text mode; 01H=graphics mode
wColors  number of colors supported; usually 16 for text modes

wWidth  and...
wHeight  define graphics mode screen resolution, in pixels.  These are
ignored when bTxtGfx is 01H.
wClms  and...
wRows  define texts mode screen resolution, in characters.  When
bTxtGfx is 01H (graphics), this is also valid; it's the number
of character cells displayable by BIOS and DOS display fns.

See Also: fn 440cH (Generic IOCTL for character devices)
INT 2FH 1a00H (query ANSI.SYS installed state)
- -

IoctlDisplayModeRec