Windows 3.1 Device Drivers (ddag31qh.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.
GETCOLORTABLE
                                                     Up Next Previous
────────────────────────────────────────────────────────────────────────────
 
#define GETCOLORTABLE 5 
short Control(lpDevice, GETCOLORTABLE, lpIndex, lpColor)
LPPDEVICE lpDevice;
LPINT lpIndex;
LPLONG lpColor;
 
The GETCOLORTABLE escape retrieves an RGB color-table entry and copies it to
the location specified by the lpColor parameter.
 
Parameter  Description
────────────────────────────────────────────────────────────────────────────
 
 
lpDevice   Points to a PDEVICE structure specifying the destination device.
 
lpIndex    Points to a 16-bit a variable specifying the index of a
           color-table entry. Color-table indexes start at zero for the
           first table entry.
 
lpColor    Points to 32-bit variable that receives the RGB color value for
           the given entry.
 
Return Value
 
The return value is positive if the escape is successful. Otherwise, it is
negative.
 
See Also
 
SETCOLORTABLE, PDEVICE
 
 
                                      ♦