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
High-Level HFS Routines / Maintaining Working Directories


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
noErr0No error
nsvErr-35No such volume
rfNumErr-51Bad working directory reference number

Previous Book Contents Book Index Next

© Apple Computer, Inc.
2 JUL 1996