Simulation support:
This function is simulated by a handling routine in Revision 2.0 (or higher) of the graphics engine.
Description
GreRealizePalette is called by the Window Manager during processing of a call to WinRealizePalette. GreRealizePalette takes a logical palette and assigns it slots in the hardware palette.
This function can be hooked by the presentation driver.
#define INCL_GRE_PALETTE
#include <os2.h>
HDC hdc; /* Device context handle. */
PULONG pflType; /* Specifies whether the DC is a foreground or background window. */
PULONG pcSlotsChanged; /* Pointer to the returned count of hardware slots changed. */
PVOID pInstance; /* Pointer to instance data. */
ULONG lFunction; /* High-order WORD=flags; low-order WORD=NGreRealizePalette. */
ULONG rc; /* Return codes. */
rc = GreRealizePalette(hdc, pflType, pcSlotsChanged,
pInstance, lFunction);