// ntifs.h
BOOLEAN FsRtlFastCheckLockForWrite(
[in] PFILE_LOCK FileLock,
[in] PLARGE_INTEGER StartingByte,
[in] PLARGE_INTEGER Length,
[in] ULONG Key,
[in] PVOID FileObject,
[in] PVOID ProcessId
);
View the official Windows Driver Kit DDI reference
No description available.
The FsRtlFastCheckLockForWrite routine determines whether the specified process has write access to a locked byte range of a file.
FileLock
[in]A pointer to the FILE_LOCK structure for the file. This structure must have been initialized by a previous call to FsRtlAllocateFileLock or FsRtlInitializeFileLock.
StartingByte
[in]A pointer to a variable that specifies the starting byte offset within the file of the byte range to check.
Length
[in]A pointer to a variable that specifies the length, in bytes, of the range to check.
Key
[in]The key for the byte range lock.
FileObject
[in]A pointer to the file object for the file.
ProcessId
[in]A pointer to the EPROCESS for the process.
The FsRtlFastCheckLockForWrite routine returns TRUE if the specified process has write access, FALSE otherwise.