Legacy Documentclose button

Important: The information in this document is obsolete and should not be used for new development.

Previous Book Contents Book Index Next

Inside Macintosh: Files /
Chapter 2 - File Manager / File Manager Reference
Foreign File System Routines /


PBSetForeignPrivs

You can use the PBSetForeignPrivs function to change the native access-control information for a file or directory stored on a volume managed by a foreign file system.

FUNCTION PBSetForeignPrivs (paramBlock: HParmBlkPtr; 
                              async: Boolean): OSErr;
paramBlock
A pointer to a foreignPrivParam variant of the 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 file or directory name.
-->ioVRefNumIntegerA volume specification.
-->ioForeignPrivBufferPtrA pointer to the privilege information buffer.
-->ioForeignPrivReqCountLongIntThe size allocated for the buffer.
-->ioForeignPrivActCountLongIntThe amount used in buffer.
-->ioForeignPrivDirIDIntegerThe parent directory ID.
-->ioForeignPrivInfo1LongIntInformation specific to
privilege model.
-->ioForeignPrivInfo2LongIntInformation specific to
privilege model.
-->ioForeignPrivInfo3LongIntInformation specific to
privilege model.
-->ioForeignPrivInfo4LongIntInformation specific to
privilege model.

DESCRIPTION
The PBSetForeignPrivs function modifies access information for a file or directory on a volume managed by a file system that uses a privilege model different from the
AFP model.

ASSEMBLY-LANGUAGE INFORMATION
The trap macro and routine selector for PBSetForeignPrivs are
Trap macroSelector
_HFSDispatch$0061

RESULT CODES
noErr0No error
nsvErr-35Volume not found
paramErr-50Volume is HFS or MFS (that is, it has no foreign privilege model), or foreign volume does not
support these calls

Previous Book Contents Book Index Next

© Apple Computer, Inc.
2 JUL 1996