Locks a region of bytes in a file opened with FCreateEx or FOpenEx.

FLockFile(nFileHandle, nLockOffset, nBytesToLock)

Parameters

nFileHandle

A file handle retrieved from FCreateEx, FOpenEx or a windows api function.

nLockOffset

Startoffset of the section of bytes to lock in the file.

nBytesToLock

Number of bytes to lock in the file.

Return Value

.T. if lock was successful, .F. otherwise.

See Also

Reference

AFHandlesEx
FChSizeEx
FCloseEx
FCreateEx
FEoFEx
FFlushEx
FGetsEx
FLockFileEx
FOpenEx
FPutsEx
FReadEx
FSeekEx
FUnlockFile
FUnlockFileEx
FWriteEx

Used WinApi functions

LockFile