Bewerken

Delen via


FsRtlUninitializeFileLock function (ntifs.h)

The FsRtlUninitializeFileLock routine uninitializes a FILE_LOCK structure.

Syntax

void FsRtlUninitializeFileLock(
  [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 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 FsRtlIninitializeFileLock.

Requirements

Requirement Value
Target Platform Universal
Header ntifs.h (include Ntifs.h)
Library NtosKrnl.lib
DLL NtosKrnl.exe
IRQL <= APC_LEVEL
DDI compliance rules HwStorPortProhibitedDDIs(storport)

See also

FILE_LOCK

FltUninitializeFileLock

FsRtlAllocateFileLock

FsRtlInitializeFileLock

IRP_MJ_LOCK_CONTROL

PCOMPLETE_LOCK_IRP_ROUTINE