FsRtlAreThereCurrentOrInProgressFileLocks - NtDoc

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

BOOLEAN FsRtlAreThereCurrentOrInProgressFileLocks(
  [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-fsrtlaretherecurrentorinprogressfilelocks)

FsRtlAreThereCurrentOrInProgressFileLocks function

Description

TheFsRtlAreThereCurrentOrInProgressFileLocks routine determines if there are byte range locks assigned to a file or any lock operations in progress for that file.

Parameters

FileLock [in]

A pointer to the FILE_LOCK structure for the file to be checked.

Return value

The routine returns TRUE when there are any byte range locks assigned to the file or when there are byte range lock requests in progress for the file. Otherwise, the routine returns FALSE.

Remarks

File systems can use the FsRtlAreThereCurrentOrInProgressFileLocks routine in Oplock Semantics to determine whether to grant a shared oplock.

See also

FILE_LOCK

FsRtlAllocateFileLock

FsRtlGetNextFileLock

FsRtlInitializeFileLock