FltFreeFileLock function (fltkernel.h)

The FltFreeFileLock routine uninitializes and frees an initialized FILE_LOCK structure.

Syntax

VOID FLTAPI FltFreeFileLock(
  [in] PFILE_LOCK FileLock
);

Parameters

[in] 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

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

See also

FltAllocateFileLock

FltCheckLockForReadAccess

FltCheckLockForWriteAccess

FltInitializeFileLock

FltProcessFileLock

FltUninitializeFileLock

FsRtlFreeFileLock