This is a method of the IDirectDrawPalette Interface.
public void getEntries(int flags, int start, int count, byte[] val);