hwnd (HWND) - input
hps (HPS) - input
pcclr (PULONG) - output
A value of zero indicates that the palette was successfully realized without changing any entries in the display hardware physical table. A non-zero value gives the number of hardware table entries that were changed and indicates that a WM_REALIZEPALETTE message has been posted to all other applications.
lChanged (LONG) - returns
PAL_ERROR
Note that this information may already be out of date if there are other palette-using applications running.