mirror of
https://github.com/autc04/Retro68.git
synced 2025-01-10 10:31:09 +00:00
Add GetWDInfo glue
This commit is contained in:
parent
073047e119
commit
fa39132cdc
@ -187,3 +187,18 @@ pascal OSErr Create (ConstStr255Param fileName, short vRefNum, OSType creator,
|
||||
// save finder info
|
||||
return PBSetFInfoSync(&pb);
|
||||
}
|
||||
|
||||
pascal OSErr GetWDInfo(short wdRefNum, short *vRefNum, long *dirID,
|
||||
long *procID)
|
||||
{
|
||||
OSErr err;
|
||||
WDPBRec pb;
|
||||
memset(&pb, 0, sizeof(pb));
|
||||
pb.ioVRefNum = wdRefNum;
|
||||
err = PBGetWDInfo(&pb, false);
|
||||
*vRefNum = pb.ioWDVRefNum;
|
||||
*dirID = pb.ioWDDirID;
|
||||
*procID = pb.ioWDProcID;
|
||||
return err;
|
||||
}
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user