Expand Minimize

FltUninitializeFileLock routine

The FltUninitializeFileLock routine uninitializes a FILE_LOCK structure.

Syntax


VOID FltUninitializeFileLock(
  _In_  PFILE_LOCK FileLock
);

Parameters

FileLock [in]

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

Version

This routine is available on Microsoft Windows XP SP2, Microsoft Windows Server 2003 SP1, and later.

Header

Fltkernel.h (include Fltkernel.h)

Library

FltMgr.lib

IRQL

<= APC_LEVEL

See also

FltAllocateFileLock
FltCheckLockForReadAccess
FltCheckLockForWriteAccess
FltFreeFileLock
FltInitializeFileLock
FltProcessFileLock
FsRtlUninitializeFileLock

 

 

Send comments about this topic to Microsoft

Show:
© 2014 Microsoft