 |
UnlockFile ..msdn Add comment W32 Constants Translate this page |
 |
 |
|
Unlocks a region in an open file. Unlocking a region enables other processes to access the region. |
 |
 |
| Code examples: |
 |
|
|
 |
 |
| Declaration: |
 |
 |
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
);
|
 |
 |
 |
| FoxPro declaration: |
 |
 |
DECLARE INTEGER UnlockFile IN kernel32;
INTEGER hFile,;
INTEGER dwFileOffsetLow,;
INTEGER dwFileOffsetHigh,;
INTEGER nNumberOfBytesToUnlockLow,;
INTEGER nNumberOfBytesToUnlockHigh
|
 |
 |
 |
| Parameters: |
 |
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. |
 |
 |
| Return value: |
 |
| If the function succeeds, the return value is nonzero. |
 |
 |
| Word Index links for the UnlockFile : |
 |
|
|
 |
 |
| Translate this page: |
 |
|
 |
 |
| • |
 |
| Created: | 2001-09-18 12:00:00 | | Modified: | 2001-11-26 16:03:42 | Visited in last 7 days: 63 |