FltCurrentOplock function

A minifilter driver calls the FltCurrentOplock routine to determine whether there are any opportunistic locks (oplocks) on a file.

Syntax

BOOLEAN FLTAPI FltCurrentOplock(
  POPLOCK Oplock
);

Parameters

Oplock

An opaque oplock pointer for the file. This pointer must have been initialized by a previous call to FltInitializeOplock.

Return Value

FltCurrentOplock returns TRUE if there are oplocks that are currently being held. Otherwise, it returns FALSE.

Remarks

FltCurrentOplock returns FALSE if no opportunistic locks are currently held.

For more information about opportunistic locks, see the Microsoft Windows SDK documentation.

Requirements

   
Windows version The FltCurrentOplock routine is available starting with Windows 7.
Target Platform Universal
Header fltkernel.h (include Fltkernel.h)
Library FltMgr.lib
IRQL "<= APC_LEVEL"

See Also

FltInitializeOplock

FsRtlCurrentOplock