## Presentation Device Driver Reference for OS/2

[prev][next][parent][TOC]

### GreQueryLogColorTable Return Value - rc

rc (LONG) - returns Return Code.

The handling routine must return a LONG value indicating the number of elements returned in pArray or:

QLCT_ERROR Error.
QLCT_RGB Color table is in RGB mode and no elements are returned.

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

Refer to the "Error Explanations" section in the Presentation Manager Programming Reference for further explanation.