Important: The information in this document is obsolete and should not be used for new development.
PBGetWDInfo
You can use thePBGetWDInfofunction to get information about a working directory.
FUNCTION PBGetWDInfo (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. <-- ioNamePtrStringPtrA pointer to a pathname. <-> ioVRefNumIntegerA volume specification. --> ioWDIndexIntegerAn index. <-> ioWDProcIDLongIntThe working directory user identifier. <-> ioWDVRefNumIntegerThe volume reference number for the working directory. <-- ioWDDirIDLongIntThe working directory's directory ID. DESCRIPTION
ThePBGetWDInfofunction returns information about the specified working directory. The working directory can be specified either by its working directory reference number inioVRefNum(in which case the value ofioWDIndexshould be 0), or by its index number inioWDIndex. In the latter case, if the value ofioVRefNumis not 0, it's interpreted as a volume specification, and only working directories on that volume
are indexed.The
ioWDVRefNumfield always returns the volume reference number. TheioVRefNumfield contains a working directory reference number when a working directory reference number is passed in that field; otherwise, it returns a volume reference number.PBGetWDInforeturns a pointer to the volume's name in theioNamePtrfield. You should pass a pointer to aStr31value if you want that name returned. If you passNILin theioNamePtrfield, no volume name is returned.ASSEMBLY-LANGUAGE INFORMATION
The trap macro and routine selector forPBGetWDInfoare
Trap macro Selector _HFSDispatch $0007 RESULT CODES
noErr 0 No error nsvErr -35 No such volume rfNumErr -51 Bad working directory reference number 
 
  
  
 