// ntifs.h
BOOLEAN FsRtlCheckLockForReadAccess(
[in] PFILE_LOCK FileLock,
[in] PIRP Irp
);
View the official Windows Driver Kit DDI reference
No description available.
The FsRtlCheckLockForReadAccess routine determines whether the process associated with a given IRP has read access to a locked region of a file.
FileLock
[in]Pointer to the FILE_LOCK structure for the file. This structure must have been initialized by a previous call to FsRtlAllocateFileLock or FsRtlInitializeFileLock.
Irp
[in]Pointer to the IRP. Must be an IRP for a read operation.
FsRtlCheckLockForReadAccess returns TRUE if the process has read access, FALSE otherwise.
On Microsoft Windows XP and later, FsRtlCheckLockForReadAccess checks the process to which the thread that requested the read operation is currently attached.
On Microsoft Windows 2000 and earlier, FsRtlCheckLockForReadAccess checks the process that created the thread.
FsRtlCheckLockForReadAccess checks to see if there are any conflicting locks in the byte range that is to be read.
FsRtlCheckLockForReadAccess does not complete the IRP specified by Irp.
Minifilters must call FltCheckLockForReadAccess instead of FsRtlCheckLockForReadAccess.