GetDriverInformation returns a number of pieces of information about an installed driver.
OSErr GetDriverInformation(
DriverRefNum refNum,
UnitNumber *unitNum,
DriverFlags *flags,
DriverOpenCount *count,
StringPtr name,
RegEntryID *device,
CFragHFSLocator *driverLoadLocation,
CFragConnectionID *fragmentConnID,
DriverEntryPointPtr *fragmentMain,
DriverDescription *driverDesc);
Given the unit table reference number of an installed driver, GetDriverInformation returns the driver's unit number in unitNum, its DCE flags in flags, the number of times it has been opened in count, its name in name, its RegEntryID value in device, its CFM fragment locator in driverLoadLocation, its CFM connection ID in fragmentConnID, its DoDriverIO entry point in fragmentMain, and its driver description in driverDesc.
Code that calls GetDriverInformation must always supply an FSSpec file specification with the CFM locator. For an example, see Listing 9-3.
With 68K drivers, GetDriverInformation returns meaningful information in only the unit Num, flags, count, and name parameters.