Group: File Management - Library: kernel32
Locking and unlocking file of a VFP table
BOOL UnlockFile(
HANDLE hFile, // handle to file
DWORD dwFileOffsetLow, // low-order word of start
DWORD dwFileOffsetHigh, // high-order word of start
DWORD nNumberOfBytesToUnlockLow, // low-order word of length
DWORD nNumberOfBytesToUnlockHigh // high-order word of length
);
DECLARE INTEGER UnlockFile IN kernel32;
INTEGER hFile,;
INTEGER dwFileOffsetLow,;
INTEGER dwFileOffsetHigh,;
INTEGER nNumberOfBytesToUnlockLow,;
INTEGER nNumberOfBytesToUnlockHigh
hFile [in] Handle to a file that contains a region locked with LockFile. The file handle must have been created with either GENERIC_READ or GENERIC_WRITE access to the file.
dwFileOffsetLow [in] Specifies the low-order word of the starting byte offset in the file where the locked region begins.
dwFileOffsetHigh [in] Specifies the high-order word of the starting byte offset in the file where the locked region begins.
nNumberOfBytesToUnlockLow [in] Specifies the low-order word of the length of the byte range to be unlocked.
nNumberOfBytesToUnlockHigh [in] Specifies the high-order word of the length of the byte range to be unlocked.
If the function succeeds, the return value is nonzero.