A file system or filter driver calls FsRtlCurrentBatchOplock to determine whether there are any batch or filter opportunistic locks (oplocks) on a file.
BOOLEAN FsRtlCurrentBatchOplock( POPLOCK Oplock );
Opaque opportunistic lock pointer for the file. This pointer must have been initialized by a previous call to FsRtlInitializeOplock.
FsRtlCurrentBatchOplock returns TRUE if there are current outstanding batch or filter opportunistic locks; FALSE otherwise.
FsRtlCurrentBatchOplock returns FALSE if no batch or filter opportunistic locks are currently held.
For detailed information about opportunistic locks, see the Microsoft Windows SDK documentation.
Minifilters should call FltCurrentBatchOplock instead of FsRtlCurrentBatchOplock.
|Header||ntifs.h (include Ntifs.h)|