PBCloseWD
You can use the PBCloseWD 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
The PBCloseWD function releases the working directory whose working directory reference number is specified in ioVRefNum.
- Note
- If you specify a volume reference number in the
ioVRefNum field, PBCloseWD does nothing.
ASSEMBLY-LANGUAGE INFORMATION
The trap macro and routine selector for PBCloseWD are
| Trap macro | Selector |
| _HFSDispatch | $0002 |
RESULT CODES
| noErr | 0 | No error |
| nsvErr | -35 | No such volume |
| rfNumErr | -51 | Bad working directory reference number |