FsRtlFreeFileLock - NtDoc

Native API online documentation, based on the System Informer (formerly Process Hacker) phnt headers
// ntifs.h

VOID FsRtlFreeFileLock(
  [in] PFILE_LOCK FileLock
);

View the official Windows Driver Kit DDI reference

NtDoc

No description available.

Windows Driver Kit DDI reference (nf-ntifs-_fsrtl_advanced_fcb_header-fsrtlfreefilelock)

FsRtlFreeFileLock function

Description

The FsRtlFreeFileLock routine uninitializes and frees a file lock structure.

Parameters

FileLock [in]

Pointer to the FILE_LOCK structure. This structure must have been allocated by a previous call to FsRtlAllocateFileLock.

Remarks

FsRtlFreeFileLock should be used only for file locks that were allocated and initialized by FsRtlAllocateFileLock.

It is a programming error to call FsRtlFreeFileLock for a FILE_LOCK structure that has already been uninitialized by a call to FsRtlUninitializeFileLock.

Minifilters must call FltFreeFileLock instead of FsRtlFreeFileLock.

See also

FltFreeFileLock

FsRtlAreThereCurrentFileLocks

FsRtlCheckLockForReadAccess

FsRtlCheckLockForWriteAccess

FsRtlFastCheckLockForRead

FsRtlFastCheckLockForWrite

FsRtlFastLock

FsRtlFastUnlockAll

FsRtlFastUnlockAllByKey

FsRtlFastUnlockSingle

FsRtlGetNextFileLock

FsRtlInitializeFileLock

FsRtlProcessFileLock

FsRtlUninitializeFileLock