FltCheckLockForReadAccess - NtDoc

Native API online documentation, based on the System Informer (formerly Process Hacker) phnt headers
// fltkernel.h

BOOLEAN FLTAPI FltCheckLockForReadAccess(
  [in] PFILE_LOCK         FileLock,
  [in] PFLT_CALLBACK_DATA CallbackData
);

View the official Windows Driver Kit DDI reference

NtDoc

No description available.

Windows Driver Kit DDI reference (nf-fltkernel-fltchecklockforreadaccess)

FltCheckLockForReadAccess function

Description

The FltCheckLockForReadAccess routine determines whether the caller has read access to a locked byte range of a file.

Parameters

FileLock [in]

Pointer to the FILE_LOCK structure for the file. This structure must have been initialized by a previous call to FltAllocateFileLock or FltInitializeFileLock.

CallbackData [in]

Pointer to the callback data (FLT_CALLBACK_DATA) structure for the IRP_MJ_READ operation.

Return value

FltCheckLockForReadAccess returns TRUE if the process has read access, FALSE otherwise.

Remarks

FltCheckLockForReadAccess checks whether the caller has read access to the entire byte range indicated in the callback data structure.

FltCheckLockForReadAccess does not complete the IRP_MJ_READ operation.

To allocate and initialize a new file lock structure, call FltAllocateFileLock.

To free an initialized FILE_LOCK structure, call FltFreeFileLock.

See also

FLT_CALLBACK_DATA

FltAllocateFileLock

FltCheckLockForWriteAccess

FltFreeFileLock

FltInitializeFileLock

FltProcessFileLock

FltUninitializeFileLock

FsRtlCheckLockForReadAccess

IRP_MJ_READ