Important: The information in this document is obsolete and should not be used for new development.
PBShare
You can use thePBSharefunction 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.
--> ioCompletionProcPtrA pointer to a completion routine. <-- ioResultOSErrThe result code of the function. --> ioNamePtrStringPtrA pointer to a pathname. --> ioVRefNumIntegerA volume specification. --> ioDirIDLongIntA directory ID. DESCRIPTION
ThePBSharefunction makes the directory specified by theioNamePtrandioDirIDfields a share point. IfioNamePtrisNIL, thenioDirIDis the directory ID of the directory that is to become a share point. IfioNamePtrpoints to a partial pathname,ioDirIDis the parent directory of the directory to be shared. 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 forPBShareare
Trap macro Selector _HFSDispatch $0042 RESULT CODES