Important: The information in this document is obsolete and should not be used for new development.
PBHSetDirAccess
You can use thePBHSetDirAccessfunction to change the access control information for a directory.
FUNCTION PBHSetDirAccess (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
ThePBHSetDirAccessfunction allows you to change the access rights to the specified directory. TheioACAccessfield contains the directory's access rights. You cannot set the owner or user rights bits of theioACAccessfield directly (if you try to do this,PBHSetDirAccessreturns the result codeparamErr). See "Directory Access Privileges," beginning on page 2-18, for a description of theioACAccessfield.To change the owner or group, you should set the
ioACOwnerIDorioACGroupIDfield to the appropriate ID. You must be the owner of the directory to change the owner or group ID. A guest on a server can manipulate the privileges of any directory owned by the guest.ASSEMBLY-LANGUAGE INFORMATION
The trap macro and routine selector forPBHSetDirAccessare
Trap macro Selector _HFSDispatch $0033 RESULT CODES