Simulation support:
None. This function is mandatory for all drivers.
Description:
GreQueryLogColorTable stores an array of the current logical color values at the location addressed by pArray.
This function must be supported by the presentation driver. GreQueryLogColorTable is called by GpiQueryLogColorTable in response to an application's request for the currently configured logical color table. This function can be handled by bit-map simulation.
#define INCL_GRE_COLORTABLE #include <os2.h> HDC hdc; /* Device context handle. */ ULONG flOptions; /* Options flag. */ LONG lStart; /* Starting index for which data is to be returned. */ LONG cArray; /* Number of elements available in the array. */ PLONG pArray; /* Pointer to the array in which the information is returned. */ PVOID pInstance; /* Pointer to instance data. */ ULONG lFunction; /* High-order WORD=flags; low-order WORD=NGreQueryLogColorTable. */ LONG rc; /* Return Code. */ rc = GreQueryLogColorTable(hdc, flOptions, lStart, cArray, pArray, pInstance, lFunction);