Differences
This shows you the differences between two versions of the page.
| Both sides previous revisionPrevious revisionNext revision | Previous revision | ||
| en:docs:fapi:viosetstate [2021/10/14 07:36] – prokushev | en:docs:fapi:viosetstate [2021/11/04 12:45] (current) – prokushev | ||
|---|---|---|---|
| Line 30: | Line 30: | ||
| | ::: | ::: | ::: | ::: | 0 - Blinking foreground colors enabled. | | | ::: | ::: | ::: | ::: | 0 - Blinking foreground colors enabled. | | ||
| | ::: | ::: | ::: | ::: | 1 - High intensity background colors enabled. | | | ::: | ::: | ::: | ::: | 1 - High intensity background colors enabled. | | ||
| + | |VIOCOLORREG|VGA, | ||
| + | | ::: | ::: | ::: | ::: |number color (USHORT) - input : Number of color registers to set; must be specified in the range 1 through 256. | | ||
| + | | ::: | ::: | ::: | ::: |datarea (PCH) - input : Far address of a data area containing one three-byte entry for each color register to be set. The format of each entry is as follows: | | ||
| + | | ::: | ::: | ::: | ::: |Byte 1 - Red value | | ||
| + | | ::: | ::: | ::: | ::: |Byte 2 - Green value | | ||
| + | | ::: | ::: | ::: | ::: |Byte 3 - Blue value | | ||
| + | |VIOSETULINELOC|EGA, | ||
| + | |VIOSETTARGET| |Only valid value.|Request type 6 to set display configuration to be the target of the next VioSetMode.| :select (USHORT) - input : Configuration: | ||
| + | | ::: | ::: | ::: | ::: | 0 - Default selection algorithm. See VioSetMode. | | ||
| + | | ::: | ::: | ::: | ::: | 1 - Primary | | ||
| + | | ::: | ::: | ::: | ::: | 2 - Secondary | | ||
| - | |- | + | * VioHandle (HVIO) - input : Reserved word of 0s. | 
| - | |VIOCOLORREG||VGA, | + | |
| - | :first color (USHORT) - input : First color register to set in the color register sequence; must be specified in the range 0 through 255. The color registers are set in sequential order. | + | ===== Return Code ===== | 
| - | :number color (USHORT) - input : Number of color registers to set; must be specified in the range 1 through 256. | + | |
| - | :datarea (PCH) - input : Far address of a data area containing one three-byte entry for each color register to be set. The format of each entry is as follows: | + | |
| - | ::Byte 1 - Red value | + | |
| - | ::Byte 2 - Green value | + | |
| - | ::Byte 3 - Blue value | + | |
| - | |- | + | |
| - | | || || ||4|| | + | |
| - | |- | + | |
| - | |VIOSETULINELOC||EGA, | + | |
| - | :scanline (USHORT) - input : Scan line minus 1. Values of 0 through 31 are acceptable. A value of 32 means underlining is disabled. | + | |
| - | |- | + | |
| - | |VIOSETTARGET|| ||Only valid value.||Request type 6 to set display configuration to be the target of the next VioSetMode.|| | + | |
| - | :select (USHORT) - input : Configuration: | + | |
| - | ::0 - Default selection algorithm. See VioSetMode. | + | |
| - | ::1 - Primary | + | |
| - | ::2 - Secondary | + | |
| - | |} | + | |
| - | ;VioHandle (HVIO) - input : Reserved word of 0s. | + | |
| - | ==Return Code== | ||
| ;rc (USHORT) - return: | ;rc (USHORT) - return: | ||
| *0 NO_ERROR | *0 NO_ERROR | ||
| Line 63: | Line 55: | ||
| *494 ERROR_VIO_EXTENDED_SG | *494 ERROR_VIO_EXTENDED_SG | ||
| - | ===Family API Considerations=== | + | ===== Remarks ===== | 
| + | |||
| + | ==== Family API Considerations ==== | ||
| Request type = 6, Set Target VioSetMode Display Configuration, | Request type = 6, Set Target VioSetMode Display Configuration, | ||
| Set Underline Location, are not supported in the family API. | Set Underline Location, are not supported in the family API. | ||
| Some options operate differently in the DOS mode than in the OS/2 mode. Therefore, the following considerations applies to VioSetMode when coding for the DOS mode: | Some options operate differently in the DOS mode than in the OS/2 mode. Therefore, the following considerations applies to VioSetMode when coding for the DOS mode: | ||
| - | * VioSetMode clears the screen. | ||
| - | ==Bindings== | + | * VioSetMode clears the screen. | 
| - | === C === | + | |
| - | <PRE> | + | ===== Bindings ===== | 
| + | |||
| + | ==== C ==== | ||
| + | <code c> | ||
| typedef struct _VIOPALSTATE { | typedef struct _VIOPALSTATE { | ||
|   USHORT  |   USHORT  | ||
| Line 128: | Line 125: | ||
| USHORT  | USHORT  | ||
| - | </PRE> | + | </code> | 
| - | ===MASM=== | + | ====MASM==== | 
| - | <PRE> | + | <code asm> | 
| VIOPALSTATE struc | VIOPALSTATE struc | ||
|   viopal_cb  |   viopal_cb  | ||
| Line 180: | Line 177: | ||
| Returns WORD | Returns WORD | ||
| - | </PRE> | + | </code> | 
| [[http:// | [[http:// | ||
| + | |||
| + | {{page> | ||




