## Presentation Device Driver Reference for OS/2

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

### GreDeviceAnimatePalette - Parameters

hdc (HDC) - input Device context handle.

hdevpal (ULONG) - input Device palette handle.

ulFormat (ULONG) - input Specifies the entry format. Must be LCOLF_ CONSECRGB.

ulStart (ULONG) - input Starting index, that is, the first palette entry to change.

cclr (ULONG) - input Count of the palette entries to change.

pclr (PULONG) - input Pointer to table of new RGB2 palette entries.

pInstance (PVOID) - input Pointer to instance data.

lFunction (ULONG) - input High-order WORD=flags; low-order WORD= NGreDeviceAnimatePalette.

rc (ULONG) - returns Return codes.

PAL-ERROR Error Count of the hardware palette slots changed.

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_PALETTE_BUSY
PMERR_INV_IN_AREA
PMERR_INV_IN_PATH.