FltCurrentOplock - NtDoc

Native API online documentation, based on the System Informer (formerly Process Hacker) phnt headers
// fltkernel.h

BOOLEAN FLTAPI FltCurrentOplock(
  [in] POPLOCK Oplock
);
View the official Windows Driver Kit DDI reference

NtDoc

No description available.

Windows Driver Kit DDI reference (nf-fltkernel-fltcurrentoplock)

FltCurrentOplock function

Description

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

Parameters

Oplock [in]

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.

See also

FltInitializeOplock

FsRtlCurrentOplock