Important: The information in this document is obsolete and should not be used for new development.
PBHRstFLock
You can use thePBHRstFLock
function to unlock a file.
FUNCTION PBHRstFLock (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
ThePBHRstFLock
function unlocks the file with the name pointed to byioNamePtr
on the volume specified byioVRefNum
. Access paths currently in use aren't affected.If the
PBHGetVolParms
function indicates that the volume supports folder locking (that is, thebHasFolderLock
bit of thevMAttrib
field is set), you can usePBHRstFLock
to unlock a directory.ASSEMBLY-LANGUAGE INFORMATION
The trap macro forPBHRstFLock
is_HRstFLock
.RESULT CODES