Legacy Documentclose button

Important: The information in this document is obsolete and should not be used for new development.

Previous Book Contents Book Index Next

Inside Macintosh: Files /
Chapter 2 - File Manager / File Manager Reference
Low-Level HFS Routines / Maintaining Working Directories


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.
-->ioCompletionProcPtrA pointer to a completion routine.
<--ioResultOSErrThe result code of the function.
-->ioVRefNumIntegerA 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 macroSelector
_HFSDispatch$0002

RESULT CODES
noErr0No error
nsvErr-35No such volume
rfNumErr-51Bad working directory reference number

Previous Book Contents Book Index Next

© Apple Computer, Inc.
2 JUL 1996