InstallDriverFromFragment installs a driver fragment in the unit table.
OSErr InstallDriverFromFragment(
CFragConnectionID fragmentConnID,
RegEntryIDPtr device,
UnitNumber beginningUnit,
UnitNumber endingUnit,
refNum *refNum);
InstallDriverFromFragment installs a driver that is located in a CFM code fragment anywhere within the specified unit number range of the unit table. It invokes the driver's Initialize command, passing the RegEntryIDPtr value to it. The driver's initialization code must return noErr for InstallDriverFromFragment to complete successfully. This function returns the driver's refNum value but it does not open the driver.
If the unit table is filled throughout the range from beginningUnit to the value returned by HighestUnitNumber, and the table has not already grown to its maximum size, it can expand to accept the new driver. To use this feature, set endingUnit larger than the value returned by the HighestUnitNumber function. If endingUnit is less than or equals the returned value under these conditions, unitTblFullErr will be returned and the driver will not be installed.