The FsRtlCheckLockForWriteAccess routine determines whether the process associated with a given IRP has write access to a locked region of a file.
- FileLock [in]
- Irp [in]
Pointer to the IRP. Must be an IRP for a write operation.
FsRtlCheckLockForWriteAccess returns TRUE if the process has write access, FALSE otherwise.
On Microsoft Windows XP and later, FsRtlCheckLockForWriteAccess checks the process to which the thread that requested the write operation is currently attached.
On Microsoft Windows 2000 and earlier, FsRtlCheckLockForWriteAccess checks the process that created the thread.
FsRtlCheckLockForWriteAccess checks to see if there are any conflicting locks in the byte range that is to be written.
FsRtlCheckLockForWriteAccess does not complete the IRP specified by Irp.
Minifilters must call FltCheckLockForWriteAccess instead of FsRtlCheckLockForWriteAccess.