// ntifs.h
BOOLEAN FsRtlCurrentOplock(
[in] POPLOCK Oplock
);
View the official Windows Driver Kit DDI referenceNo description available.
A file system or filter driver calls FsRtlCurrentOplock to determine whether there are any opportunistic locks (oplocks) on a file.
Oplock [in]An opaque opportunistic lock pointer for the file. This pointer must have been initialized by a previous call to FsRtlInitializeOplock.
FsRtlCurrentOplock returns TRUE if there are opportunistic locks (oplocks) that are currently being held. Otherwise, it returns FALSE.
FsRtlCurrentOplock returns FALSE if no opportunistic locks are currently held.
For more information about opportunistic locks, see the Microsoft Windows SDK documentation.
Minifilters should call FltCurrentOplock instead of FsRtlCurrentOplock.