| DirectX SDK | 
The DirectDrawPalette.SetEntries method changes entries in a DirectDrawPalette object immediately.
object.SetEntries( _ 
    start As Long, _ 
    count As Long, _ 
    val() As PALETTEENTRY)
If the method fails, it raises an error, and Err.Number can be set to one of the following values:
| DDERR_INVALIDOBJECT | 
| DDERR_INVALIDPARAMS | 
| DDERR_NOPALETTEATTACHED | 
| DDERR_NOTPALETTIZED | 
| DDERR_UNSUPPORTED |