FltFreeFileLock function

The FltFreeFileLock routine uninitializes and frees an initialized FILE_LOCK structure.

Syntax

VOID FLTAPI FltFreeFileLock(
  PFILE_LOCK FileLock
);

Parameters

FileLock

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

Return Value

None

Remarks

The FILE_LOCK structure is opaque: that is, its members are reserved for system use.

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

It is a programming error to call FltFreeFileLock for a FILE_LOCK structure that has already been uninitialized by a call to FltUninitializeFileLock.

Requirements

   
Windows version This routine is available on Microsoft Windows XP SP2, Microsoft Windows Server 2003 SP1, and later.
Target Platform Universal
Header fltkernel.h (include Fltkernel.h)
Library FltMgr.lib
IRQL "<= APC_LEVEL"

See Also

FltAllocateFileLock

FltCheckLockForReadAccess

FltCheckLockForWriteAccess

FltInitializeFileLock

FltProcessFileLock

FltUninitializeFileLock

FsRtlFreeFileLock