Expand Minimize

FltCurrentOplockH routine

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

Syntax


BOOLEAN FltCurrentOplockH(
  _In_  POPLOCK Oplock
);

Parameters

Oplock [in]

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

Return value

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

Remarks

FltCurrentOplockH returns FALSE if no CACHE_HANDLE_LEVEL opportunistic locks are currently held.

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

Requirements

Target platform

Universal

Version

The FltCurrentOplockH routine is available starting with Windows 7.

Header

Fltkernel.h (include Fltkernel.h)

Library

FltMgr.lib

IRQL

<= APC_LEVEL

See also

FltInitializeOplock
FsRtlCurrentOplockH

 

 

Send comments about this topic to Microsoft

Show:
© 2015 Microsoft