PATH 
ADC Home > Documentation > Hardware > Device Managers and Drivers > PCI Card Services > Designing PCI Cards and Drivers for Power Macintosh Computers


  

DirectSetEntries (csCode = 8)

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);
--> csTable
Pointer to ColorSpec array
--> csStart
First entry in table
--> csCount
Number of entries to set

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.


© 1999 Apple Computer, Inc. – (Last Updated 26 March 99)