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


  

GetDriverDiskFragment

GetDriverDiskFragment loads a native driver from a file.

OSErr GetDriverDiskFragment(
                     FSSpecPtr fragmentSpec,
                     CFragConnectionID *fragmentConnID,
                     DriverEntryPointPtr *fragmentMain,
                     DriverDescriptionPtr driverDesc);
fragmentSpec
Pointer to a file system specification.
fragmentConnID
Resulting CFM connectionID.
fragmentMain
Resulting pointer to DoDriverIO.
driverDesc
Resulting pointer to DriverDescription.
DESCRIPTION

Given a pointer to a CFM container file system specification, GetDriverDiskFragment uses the CFM to find and load a driver code fragment. It returns the loaded driver's CFM connectionID value in fragmentConnID, a pointer to its DoDriverIO entry point in fragmentMain, and a pointer to its driver description in driverDesc.

RESULT CODES
noErr 0 No error
fnfErr -43 File not found
All CFM errors (see Inside Macintosh: PowerPC System Software)

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