FsRtlFastCheckLockForWrite - NtDoc

Native API online documentation, based on the System Informer (formerly Process Hacker) phnt headers
// 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

NtDoc

No description available.

Windows Driver Kit DDI reference (nf-ntifs-_fsrtl_advanced_fcb_header-fsrtlfastchecklockforwrite)

FsRtlFastCheckLockForWrite function

Description

The FsRtlFastCheckLockForWrite routine determines whether the specified process has write access to a locked byte range of a file.

Parameters

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.

Return value

The FsRtlFastCheckLockForWrite routine returns TRUE if the specified process has write access, FALSE otherwise.

See also

FsRtlAllocateFileLock

FsRtlFastCheckLockForRead

FsRtlInitializeFileLock