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


  

ReplaceDriverWithFragment

ReplaceDriverWithFragment replaces a driver that is already installed with a new driver contained in a CFM fragment. It sends replace and superseded calls to the drivers, as described in Replace and Superseded Routines.

OSErr sReplaceDriverWithFragment(
                     DriverRefNum theRefNum,
                     CFragConnectionID fragmentConnID);
theRefNum
Reference number of the driver to be replaced.
fragmentConnID
CFM connection ID for the new driver fragment.
DESCRIPTION

Given the unit table reference number of an installed driver in theRefNum, ReplaceDriverWithFragment replaces that driver with a new driver contained in a CFM fragment identified by fragmentConnID. It sends replace and superseded calls to both drivers, as described in Replace and Superseded Routines.

Note

The CFM fragmentConnID variable should be freed when the driver is unloaded.

RESULT CODES
noErr 0 No error
All CFM errors (See Inside Macintosh: PowerPC System Software)

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