// ntifs.h
BOOLEAN FsRtlAreThereCurrentOrInProgressFileLocks(
[in] PFILE_LOCK FileLock
);
View the official Windows Driver Kit DDI reference
No description available.
TheFsRtlAreThereCurrentOrInProgressFileLocks routine determines if there are byte range locks assigned to a file or any lock operations in progress for that file.
FileLock
[in]A pointer to the FILE_LOCK structure for the file to be checked.
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.
File systems can use the FsRtlAreThereCurrentOrInProgressFileLocks routine in Oplock Semantics to determine whether to grant a shared oplock.