Important: The information in this document is obsolete and should not be used for new development.
PBUnshare
You can use thePBUnshare
function 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.
--> 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. --> ioDirID
LongInt
A directory ID. DESCRIPTION
ThePBUnshare
function makes the share point specified by theioNamePtr
andioDirID
fields unavailable on the network. IfioNamePtr
isNIL
, thenioDirID
is
the directory ID of the directory that is to become unavailable. IfioNamePtr
points
to a partial pathname,ioDirID
is the parent directory of the directory to become unavailable. TheioVRefNum
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 forPBUnshare
are
Trap macro Selector _HFSDispatch $0043 RESULT CODES