Important: The information in this document is obsolete and should not be used for new development.
PBShare
You can use thePBShare
function to establish a local volume or directory as a
share point.
FUNCTION PBShare (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
ThePBShare
function makes the directory specified by theioNamePtr
andioDirID
fields a share point. IfioNamePtr
isNIL
, thenioDirID
is the directory ID of the directory that is to become a share point. IfioNamePtr
points to a partial pathname,ioDirID
is the parent directory of the directory to be shared. 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 forPBShare
are
Trap macro Selector _HFSDispatch $0042 RESULT CODES