Important: The information in this document is obsolete and should not be used for new development.
PBHGetDirAccess
You can use thePBHGetDirAccessfunction to get the access control information for
a directory.
FUNCTION PBHGetDirAccess (paramBlock: HParmBlkPtr; async: Boolean): OSErr;
paramBlock- A pointer to an HFS 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. <-- ioACOwnerIDLongIntThe owner ID. <-- ioACGroupIDLongIntThe group ID. <-- ioACAccessLongIntThe access rights. --> ioDirIDLongIntThe directory ID. DESCRIPTION
ThePBHGetDirAccessreturns access control information for the specified directory. On output, theioACOwnerIDfield contains the ID of the directory's owner, and theioACGroupIDfield contains the directory's primary group. The directory's access rights are encoded in theioACAccessfield. See "Directory Access Privileges," beginning on page 2-18, for a description of theioACAccessfield.ASSEMBLY-LANGUAGE INFORMATION
The trap macro and routine selector forPBHGetDirAccessare
Trap macro Selector _HFSDispatch $0032 RESULT CODES
noErr 0 No error fnfErr -43 Directory not found paramErr -50 Function not supported by volume afpAccessDenied -5000 User does not have the correct access to the directory