FltCheckLockForWriteAccess function (fltkernel.h)
The FltCheckLockForWriteAccess routine determines whether the caller has write access to a locked byte range of a file.
BOOLEAN FLTAPI FltCheckLockForWriteAccess(
[in] PFILE_LOCK FileLock,
[in] PFLT_CALLBACK_DATA CallbackData
);
[in] FileLock
Pointer to the FILE_LOCK structure for the file. This structure must have been initialized by a previous call to FltAllocateFileLock or FltInitializeFileLock.
[in] CallbackData
Pointer to the callback data (FLT_CALLBACK_DATA) structure for the IRP_MJ_WRITE operation.
FltCheckLockForWriteAccess returns TRUE if the process has write access, FALSE otherwise.
FltCheckLockForWriteAccess checks whether the caller has write access to the entire byte range indicated in the callback data structure.
FltCheckLockForWriteAccess 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.
Requirement | Value |
---|---|
Minimum supported client | Windows XP SP2 |
Minimum supported server | Windows Server 2003 SP1 |
Target Platform | Universal |
Header | fltkernel.h (include Fltkernel.h) |
Library | FltMgr.lib |
IRQL | <= APC_LEVEL |