FsRtlCurrentOplockH - NtDoc

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

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

NtDoc

No description available.

Windows Driver Kit DDI reference (nf-ntifs-_fsrtl_advanced_fcb_header-fsrtlcurrentoplockh)

FsRtlCurrentOplockH function

Description

A file system or filter driver calls FsRtlCurrentOplockH to determine whether there are any CACHE_HANDLE_LEVEL opportunistic locks (oplocks) on a file.

Parameters

Oplock [in]

An opaque opportunistic lock pointer for the file. This pointer must have been initialized by a previous call to FsRtlInitializeOplock.

Return value

FsRtlCurrentOplockH returns TRUE if there are CACHE_HANDLE_LEVEL opportunistic locks that are currently being held. Otherwise, it returns FALSE.

Remarks

FsRtlCurrentOplockH returns FALSE if no CACHE_HANDLE_LEVEL opportunistic locks (oplocks) are currently held.

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

Minifilters should call FltCurrentOplockH instead of FsRtlCurrentOplock.

See also

FltCurrentOplockH

FsRtlInitializeOplock