Bewerken

Delen via


FsRtlCurrentOplockH function (ntifs.h)

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

Syntax

BOOLEAN FsRtlCurrentOplockH(
  [in] POPLOCK Oplock
);

Parameters

[in] Oplock

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.

Requirements

Requirement Value
Minimum supported client The FsRtlCurrentOplockH routine is available starting with Windows 7.
Target Platform Universal
Header ntifs.h (include Ntifs.h)
Library NtosKrnl.lib
DLL NtosKrnl.exe
IRQL <= APC_LEVEL

See also

FltCurrentOplockH

FsRtlInitializeOplock