Important: The information in this document is obsolete and should not be used for new development.
PBUnshare
You can use thePBUnsharefunction to reverse the effects ofPBShare.
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
ThePBUnsharefunction makes the share point specified by theioNamePtrandioDirIDfields unavailable on the network. IfioNamePtrisNIL, thenioDirIDis
the directory ID of the directory that is to become unavailable. IfioNamePtrpoints
to a partial pathname,ioDirIDis the parent directory of the directory to become unavailable. TheioVRefNumfield 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 forPBUnshareare
Trap macro Selector _HFSDispatch $0043 RESULT CODES