no way to compare when less than two revisions
Differences
This shows you the differences between two versions of the page.
Last revision | |||
— | en:ibm:prcp:vio:getmode [2016/02/04 11:02] – created valerius | ||
---|---|---|---|
Line 1: | Line 1: | ||
+ | ==== VioGetMode ==== | ||
+ | |||
+ | **Bindings**: | ||
+ | |||
+ | This call returns the mode of the display. | ||
+ | |||
+ | // | ||
+ | |||
+ | // | ||
+ | Far address of a structure where mode characteristics are returned. | ||
+ | |||
+ | //length// (**USHORT**) | ||
+ | Input parameter to [[en: | ||
+ | |||
+ | //type// (**UCHAR**) | ||
+ | Mode characteristics bit mask: | ||
+ | |||
+ | ^Bit ^Description ^ | ||
+ | ^ ^ ^ | ||
+ | |7-4 |Reserved | | ||
+ | | | | | ||
+ | |3 |0 = VGA-compatible modes 0 thru 13H | | ||
+ | | | | | ||
+ | | |1 = Native mode | | ||
+ | | | | | ||
+ | |2 |0 = Enable color burst | | ||
+ | | | | | ||
+ | | |1 = Disable color burst | | ||
+ | | | | | ||
+ | |1 |0 = Text mode | | ||
+ | | | | | ||
+ | | |1 = Graphics mode | | ||
+ | | | | | ||
+ | |0 |0 = Monochrome compatible mode | | ||
+ | | | | | ||
+ | | |1 = Other. | | ||
+ | |||
+ | // | ||
+ | Number of colors defined as a power of 2. This is equivalent to the number of color bits that define the color, for example: | ||
+ | |||
+ | ^Value ^Definition ^ | ||
+ | |0 |Monochrome modes 7, 7+, and F. | | ||
+ | |1 |2 colors | | ||
+ | |2 |4 colors | | ||
+ | |4 |16 colors | | ||
+ | |8 |256 colors | | ||
+ | |||
+ | // | ||
+ | Number of text columns. | ||
+ | |||
+ | // | ||
+ | Number of text rows. | ||
+ | |||
+ | //pelcols// (**USHORT**) | ||
+ | Horizontal resolution, number of pel columns. | ||
+ | |||
+ | //pelrows// (**USHORT**) | ||
+ | Vertical resolution, number of pel rows. | ||
+ | |||
+ | //Attribute Format// (**UCHAR**) | ||
+ | Format of the attributes. | ||
+ | |||
+ | //Number of Attributes// | ||
+ | Number of attributes in a character cell. | ||
+ | |||
+ | //Buffer Address// (**ULONG**) | ||
+ | 32-bit physical address of the physical display buffer for this mode. | ||
+ | |||
+ | //Buffer Length// (**ULONG**) | ||
+ | Length of the physical display buffer for this mode. | ||
+ | |||
+ | //Full Buffer Size// (**ULONG**) | ||
+ | Size of the buffer required for a full save of the physical display buffer for this mode. | ||
+ | |||
+ | //Partial Buffer Size// (**ULONG**) | ||
+ | Size of the buffer required for a partial (pop-up) save of the physical display buffer for this mode. | ||
+ | |||
+ | //Extended Data Area Address// (**PCH**) | ||
+ | Far address to an extended mode data structure or zero if none. The format of the extended mode data structure is determined by the device driver and is unknown to OS/2. | ||
+ | |||
+ | // | ||
+ | Reserved word of 0s. | ||
+ | |||
+ | //rc// (**USHORT**) - return | ||
+ | Return code descriptions are: | ||
+ | |||
+ | |0 |NO_ERROR | | ||
+ | |436 |ERROR_VIO_INVALID_HANDLE | | ||
+ | |438 |ERROR_VIO_INVALID_LENGTH | | ||
+ | |465 |ERROR_VIO_DETACHED | | ||
+ | |494 |ERROR_VIO_EXTENDED_SG | | ||
+ | |||
+ | **Remarks** | ||
+ | |||
+ | Refer to [[en: | ||