Was this page helpful?
Your feedback about this content is important. Let us know what you think.
Additional feedback?
1500 characters remaining
Export (0) Print
Expand All
Expand Minimize

FsRtlUninitializeFileLock routine

The FsRtlUninitializeFileLock routine uninitializes a FILE_LOCK structure.

Syntax


VOID FsRtlUninitializeFileLock(
  _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 FsRtlAllocateFileLock or FsRtlInitializeFileLock.

Return value

None

Remarks

FsRtlUninitializeFileLock uninitializes an initialized FILE_LOCK structure and completes any outstanding IRP_MJ_LOCK_CONTROL requests. The uninitialized FILE_LOCK structure can be initialized for reuse by a subsequent call to FsRtlInitializeFileLock.

FsRtlUninitializeFileLock can be used to uninitialize a FILE_LOCK structure that was initialized by a previous call to FsRtlAllocateFileLock or FsRtlInitializeFileLock. Do not use FsRtlUninitializeFileLock for such a FILE_LOCK structure unless the structure is to be initialized for reuse. It is a programming error to call FsRtlFreeFileLock for an uninitialized FILE_LOCK structure.

Minifilters must call FltUninitializeFileLock instead of FsRtlUninitializeFileLock.

Requirements

Target platform

Universal

Header

Ntifs.h (include Ntifs.h)

Library

NtosKrnl.lib

DLL

NtosKrnl.exe

IRQL

<= APC_LEVEL

See also

FltUninitializeFileLock
FsRtlAllocateFileLock
FsRtlInitializeFileLock
IRP_MJ_LOCK_CONTROL
PCOMPLETE_LOCK_IRP_ROUTINE

 

 

Send comments about this topic to Microsoft

Show:
© 2015 Microsoft