GetWDInfo
You can use the GetWDInfo function to get information about a working directory.
FUNCTION GetWDInfo (wdRefNum: Integer; VAR vRefNum: Integer;
VAR dirID: LongInt; VAR procID: LongInt):
OSErr;
wdRefNum
- A working directory reference number.
vRefNum
- If nonzero on input, a volume reference number or drive number. On output, the volume reference number of the working directory.
dirID
- On output, the directory ID of the specified working directory.
procID
- The working directory user identifier.
DESCRIPTION
The GetWDInfo function returns information about the specified working directory.
You can use GetWDInfo to convert a working directory reference number to its corresponding volume reference number and directory ID.
RESULT CODES
| noErr | 0 | No error |
| nsvErr | -35 | No such volume |
| rfNumErr | -51 | Bad working directory reference number |