FltUninitializeFileLock function

The FltUninitializeFileLock routine uninitializes a FILE_LOCK structure.

Syntax

VOID FLTAPI FltUninitializeFileLock(
  PFILE_LOCK FileLock
);

Parameters

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

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

See Also

FltAllocateFileLock

FltCheckLockForReadAccess

FltCheckLockForWriteAccess

FltFreeFileLock

FltInitializeFileLock

FltProcessFileLock

FsRtlUninitializeFileLock