// ntifs.h
PFILE_LOCK FsRtlAllocateFileLock(
[in, optional] PCOMPLETE_LOCK_IRP_ROUTINE CompleteLockIrpRoutine,
[in, optional] PUNLOCK_ROUTINE UnlockRoutine
);
View the official Windows Driver Kit DDI reference
No description available.
The FsRtlAllocateFileLock routine allocates and initializes a new FILE_LOCK structure.
CompleteLockIrpRoutine
[in, optional]A pointer to a PCOMPLETE_LOCK_IRP_ROUTINE-typed callback routine to be called when an IRP_MJ_LOCK_CONTROL request is completed. This parameter is optional and can be NULL.
UnlockRoutine
[in, optional]A pointer to a PUNLOCK_ROUTINE-typed callback routine to be called when the byte range is unlocked. This parameter is optional and can be NULL.
FsRtlAllocateFileLock returns a pointer to the newly allocated FILE_LOCK structure.
FsRtlAllocateFileLock allocates a new FILE_LOCK structure from paged pool and initializes it.
Minifilters should call FltAllocateFileLock instead of FsRtlAllocateFileLock.