DirectSetEntries is optional. Normally, color table animation is not used on a direct device, but there are some special circumstances under which an application may want to change the color table hardware. The DirectSetEntries routine provides the direct device with indexed mode functionality identical to the regular SetEntries control routine.
OSErr = PBControl(theDeviceRefNum, cscDirectSetEntries, &theVDSetEntryRecord);
The DirectSetEntries routine has exactly the same functions and parameters as the regular SetEntries routine, but it works only on a direct device. If this call is issued to an indexed device, it should return controlErr.