Expand Minimize
This topic has not yet been rated - Rate this topic

FsRtlFreeFileLock routine

The FsRtlFreeFileLock routine uninitializes and frees a file lock structure.

Syntax


VOID FsRtlFreeFileLock(
  _In_  PFILE_LOCK FileLock
);

Parameters

FileLock [in]

Pointer to the FILE_LOCK structure. This structure must have been allocated by a previous call to FsRtlAllocateFileLock.

Return value

None

Remarks

FsRtlFreeFileLock should be used only for file locks that were allocated and initialized by FsRtlAllocateFileLock.

It is a programming error to call FsRtlFreeFileLock for a FILE_LOCK structure that has already been uninitialized by a call to FsRtlUninitializeFileLock.

Minifilters must call FltFreeFileLock instead of FsRtlFreeFileLock.

Requirements

Version

This routine is available on Microsoft Windows 2000 and later.

Header

Ntifs.h (include Ntifs.h)

Library

Ntoskrnl.lib

IRQL

<= APC_LEVEL

See also

FltFreeFileLock
FsRtlAreThereCurrentFileLocks
FsRtlCheckLockForReadAccess
FsRtlCheckLockForWriteAccess
FsRtlFastCheckLockForRead
FsRtlFastCheckLockForWrite
FsRtlFastLock
FsRtlFastUnlockAll
FsRtlFastUnlockAllByKey
FsRtlFastUnlockSingle
FsRtlGetNextFileLock
FsRtlInitializeFileLock
FsRtlProcessFileLock
FsRtlUninitializeFileLock

 

 

Send comments about this topic to Microsoft

Build date: 11/21/2012

© 2013 Microsoft. All rights reserved.