Important: The information in this document is obsolete and should not be used for new development.
FSpSetFLock
You can use theFSpSetFLock
function to lock a file.
FUNCTION FSpSetFLock (spec: FSSpec): OSErr;
- spec
- An
FSSpec
record specifying the file to lock.DESCRIPTION
The FSpSetFLock function locks a file. After you lock a file, all new access paths to that file are read-only. This function has no effect on existing access paths.If the
PBHGetVolParms
function indicates that the volume supports folder locking (that is, thebHasFolderLock
bit of thevMAttrib
field is set), you can useFSpSetFLock
to lock a directory.ASSEMBLY-LANGUAGE INFORMATION
The trap macro and routine selector for FSpSetFLock are
Trap macro Selector _HighLevelHFSDispatch $0009 RESULT CODES