FltUninitializeFileLock function (fltkernel.h)

The FltUninitializeFileLock routine uninitializes a FILE_LOCK structure.

Syntax

VOID FLTAPI FltUninitializeFileLock(
  [in] PFILE_LOCK FileLock
);

Parameters

[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.

Return value

None

Remarks

FltUninitializeFileLock uninitializes an initialized FILE_LOCK structure, freeing all file locks and completing any outstanding lock operations. The uninitialized FILE_LOCK structure can be initialized for reuse by a subsequent call to FltInitializeFileLock.

FltUninitializeFileLock can be used to uninitialize a FILE_LOCK structure allocated by a previous call to FltAllocateFileLock. Do not use FltUninitializeFileLock for such a FILE_LOCK structure unless the structure is to be initialized for reuse. It is a programming error to call FltFreeFileLock for an uninitialized FILE_LOCK structure.

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

To free an initialized FILE_LOCK structure, call FltFreeFileLock.

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
DLL Fltmgr.sys
IRQL <= APC_LEVEL

See also

FltAllocateFileLock

FltCheckLockForReadAccess

FltCheckLockForWriteAccess

FltFreeFileLock

FltInitializeFileLock

FltProcessFileLock

FsRtlUninitializeFileLock