WDPBRec
WDPBRec structure
#include <Files.h>
typedef struct { Size Offset Description
QElemPtr qLink; 0 4 Address of next queue element
(0=last)
short qType; 2 4 Always ioQType (2)
short ioTrap; 2 6 (used internally by File Manager)
Ptr ioCmdAddr; 4 8 (used internally by File Manager)
ProcPtr ioCompletion; 4 12 Completion routine address (see
Async I/O)
OSErr ioResult; 2 16 Error Code (0=no error,1=not done
yet, ...)
StringPtr ioNamePtr; 4 18 Address of p-string of current
filename
short ioVRefNum; 2 22 Volume or working directory
reference
short filler1; 2 24 (not used)
short ioWDIndex; 2 26 Index (for indexed searches)
long ioWDProcID; 4 28 Working dir user ref (app's signature
or 0)
short ioWDVRefNum; 2 32 Volume in which working dir is
located
short filler2[7]; 14 34 (not used)
long ioWDDirID; 4 48 Working directory's directory ID
} WDPBRec; 52
typedef WDPBRec *WDPBPtr;

Notes: Use this WDPBRec structure in calls to PBOpenWD, PBCloseWD, and
PBGetWDInfo.
Set ioWDIndex to 0 if in all cases except for indexed lookups via
PBGetWDInfo.
The meaning and usage of ioWDProcID has not been fully explained by
Apple, but they do recommend that you set it to 'ERIK'.