Important: The information in this document is obsolete and should not be used for new development.
PBOffLine
You can use thePBOffLinefunction to place a volume offline. Most applications don't need to do this.
FUNCTION PBOffLine (paramBlock: ParmBlkPtr): OSErr;
paramBlock- A pointer to a basic File Manager parameter block.
--> ioCompletionProcPtrA pointer to a completion routine. <-- ioResultOSErrThe result code of the function. --> ioNamePtrStringPtrA pointer to a pathname. --> ioVRefNumIntegerA volume specification. DESCRIPTION
ThePBOffLinefunction places the specified volume offline by callingPBFlushVolto flush the volume and releasing all the memory used for the volume except for the volume control block.The
PBOffLinefunction always executes synchronously.ASSEMBLY-LANGUAGE INFORMATION
The trap macro forPBOffLineis_OffLine.RESULT CODES
noErr 0 No error nsvErr -35 No such volume ioErr -36 I/O error bdNamErr -37 Bad volume name paramErr -50 No default volume nsDrvErr -56 No such drive extFSErr -58 External file system