msos2.hlp (Table of Contents; Topic list)
Important Notice
The pages on this site contain documentation for very old MS-DOS software, purely for historical purposes. If you're looking for up-to-date documentation, particularly for programming, you should not rely on the information found here, as it will be woefully out of date.
VIOPALSTATE (1.2)
                                                      Up Next Previous
────────────────────────────────────────────────────────────────────────────
 
#define INCL_VIO
 
typedef struct _VIOPALSTATE {    /* viopal */
    USHORT cb;
    USHORT type;
    USHORT iFirst;
    USHORT acolor[1];
} VIOPALSTATE;
 
The VIOPALSTATE structure contains the screen-palette registers.
 
Field      Description
────────────────────────────────────────────────────────────────────────────
 
cb         Specifies the length of the structure (in bytes). The length
           determines how many palette registers are retrieved. The maximum
           length is 38 bytes for 16 registers.
 
type       Specifies the request type. To retrieve the palette register
           state, this field must be set to 0x0000.
 
iFirst     Specifies the first palette register to be retrieved. This field
           must be a value from 0x0000 to 0x000F. The function retrieves the
           palette registers in sequential order. The number of registers
           retrieved depends on the structure size specified by the cb
           field.
 
acolor[1]  Specifies the array that receives the color values for the
           palette registers.
 
See Also
 
VioGetState, VioSetState, VIOINTENSITY, VIOOVERSCAN