Funktionreferenz


_WinAPI_UnlockFile


Unlocks a region in an open file

#include <WinAPIFiles.au3>
_WinAPI_UnlockFile ( $hFile, $iOffset, $iLength )

Parameter

$hFile Handle to the file that contains a region locked with _WinAPI_LockFile() function.
$iOffset The starting byte offset in the file where the locked region begins.
$iLength The length of the byte range to be unlocked.

Rückgabewert

Success: True
Failure: False

Bemerkungen

Unlocking a region of a file releases a previously acquired lock on the file. The region to unlock must correspond
exactly to an existing locked region. Two adjacent regions of a file cannot be locked separately and then unlocked
using a single region that spans both locked regions.

Verwandte Funktionen

_WinAPI_LockFile

Siehe auch

Suche nach UnlockFile in der MSDN Bibliothek.