Important: The information in this document is obsolete and should not be used for new development.
PBHSetDirAccess
You can use thePBHSetDirAccess
function 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.
--> ioCompletion
ProcPtr
A pointer to a completion routine. <-- ioResult
OSErr
The result code of the function. --> ioNamePtr
StringPtr
A pointer to a pathname. --> ioVRefNum
Integer
A volume specification. --> ioACOwnerID
LongInt
The owner ID. --> ioACGroupID
LongInt
The group ID. --> ioACAccess
LongInt
The access rights. --> ioDirID
LongInt
The directory ID. DESCRIPTION
ThePBHSetDirAccess
function allows you to change the access rights to the specified directory. TheioACAccess
field contains the directory's access rights. You cannot set the owner or user rights bits of theioACAccess
field directly (if you try to do this,PBHSetDirAccess
returns the result codeparamErr
). See "Directory Access Privileges," beginning on page 2-18, for a description of theioACAccess
field.To change the owner or group, you should set the
ioACOwnerID
orioACGroupID
field 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 forPBHSetDirAccess
are
Trap macro Selector _HFSDispatch $0033 RESULT CODES