Important: The information in this document is obsolete and should not be used for new development.
PBCloseWD
You can use thePBCloseWD
function to close a working directory.
FUNCTION PBCloseWD (paramBlock: WDPBPtr; async: Boolean): OSErr;
paramBlock
- A pointer to a working directory parameter block.
async
- A Boolean value that specifies asynchronous (
TRUE) or synchronous (FALSE) execution.
--> ioCompletion
ProcPtr
A pointer to a completion routine. <-- ioResult
OSErr
The result code of the function. --> ioVRefNum
Integer
A working directory reference number. DESCRIPTION
ThePBCloseWD
function releases the working directory whose working directory reference number is specified inioVRefNum
.
- Note
- If you specify a volume reference number in the
ioVRefNum
field,PBCloseWD
does nothing.ASSEMBLY-LANGUAGE INFORMATION
The trap macro and routine selector forPBCloseWD
are
Trap macro Selector _HFSDispatch $0002 RESULT CODES
noErr 0 No error nsvErr -35 No such volume rfNumErr -51 Bad working directory reference number