hdc (HDC) - input
flOptions (ULONG) - input
Valid options are:
LCOLOPT_REALIZED
lStart (LONG) - input
Typically, this is 0 to start the sequence. This value does not necessarily bear any relationship to the color index because the order in which the colors are returned is not defined.
cArray (LONG) - input
pArray (PLONG) - input
When LCOLOPT_INDEX is set, this is an array of alternating color indexes and values (in the order, index1, value1, index2, value2 and so on). If there is a color table, colors that are not in the table but are available on the device, have a special index of QLCT_NOTLOADED. In RGB mode, the RGB value is returned in the color indexes.
When LCOLOPT_INDEX is not set, this is an array of color values. Each value is the same as those defined for GreCreateLogColorTable.
pInstance (PVOID) - input
lFunction (ULONG) - input
rc (LONG) - returns
On completion, the handling routine must return the number of colors returned in the array (cColors), or GPI_ALTERROR if an error occurred
Possible Errors Detected: When an error is detected, the handling routine must call WinSetErrorInfo to post the condition. Error codes for conditions that the handling routine is expected to check include:
PMERR_DEV_FUNC_NOT_INSTALLED PMERR_INV_COLOR_OPTIONS
PMERR_INV_COLOR_START_INDEX
PMERR_INV_HDC
PMERR_INV_LENGTH_OR_COUNT