Important: The information in this document is obsolete and should not be used for new development.
PBCloseWD
You can use thePBCloseWDfunction 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.
--> ioCompletionProcPtrA pointer to a completion routine. <-- ioResultOSErrThe result code of the function. --> ioVRefNumIntegerA working directory reference number. DESCRIPTION
ThePBCloseWDfunction releases the working directory whose working directory reference number is specified inioVRefNum.
- Note
- If you specify a volume reference number in the
ioVRefNumfield,PBCloseWDdoes nothing.![]()
ASSEMBLY-LANGUAGE INFORMATION
The trap macro and routine selector forPBCloseWDare
Trap macro Selector _HFSDispatch $0002 RESULT CODES
noErr 0 No error nsvErr -35 No such volume rfNumErr -51 Bad working directory reference number