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


  

DriverGestaltOn and DriverGestaltOff

DriverGestaltOn and DriverGestaltOff let driver code indicate to other software that it does or does not support driver gestalt.

OSErr DriverGestaltOn(DriverRefNum refNum);

OSErr DriverGestaltOff(DriverRefNum refNum);
refNum
Unit table reference number.
DESCRIPTION

DriverGestaltOn and DriverGestaltOff set and clear bit 2 in the device control entry (DCE) flags word.

RESULT CODES
noErr 0 No error
badUnitErr -21 Bad unit number
unitEmptyErr -22 Empty unit number

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