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
Shared Environment Routines / Manipulating Share Points


PBUnshare

You can use the PBUnshare function to reverse the effects of PBShare.

FUNCTION PBUnShare (paramBlock: HParmBlkPtr; async: Boolean):
                      OSErr;
paramBlock
A pointer to a basic 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.
-->ioDirIDLongIntA directory ID.

DESCRIPTION
The PBUnshare function makes the share point specified by the ioNamePtr and ioDirID fields unavailable on the network. If ioNamePtr is NIL, then ioDirID is
the directory ID of the directory that is to become unavailable. If ioNamePtr points
to a partial pathname, ioDirID is the parent directory of the directory to become unavailable. The ioVRefNum field can contain a volume reference number, a working directory reference number, a drive number, or 0 for the default volume.

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

RESULT CODES
noErr0No error
fnfErr-43File not found
paramErr-50Function not supported by volume
dirNFErr-120Directory not found
afpObjectTypeErr-5025Object was a file, not a directory; or, this directory is not a share point

Previous Book Contents Book Index Next

© Apple Computer, Inc.
2 JUL 1996