The FsRtlCheckLockForReadAccess routine determines whether the process associated with a given IRP has read access to a locked region of a file.
- FileLock [in]
- 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.