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


  

RenameDriver

RenameDriver changes the name of a driver.

OSErr RenameDriver(
                     DriverRefNum refNum,
                     StringPtr newDriverName);
refNum
Reference number of the driver to be renamed.
newDriverName
Pointer to the driver's new name in a Pascal string.
DESCRIPTION

Given the unit table reference number of an installed driver in refNum, RenameDriver changes the driver's name to the contents of a string pointed to by newDriverName.

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)