Export (0) Print
Expand All
Expand Minimize

FsRtlCurrentOplock function

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

Syntax


BOOLEAN FsRtlCurrentOplock(
  _In_  POPLOCK Oplock
);

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

FsRtlCurrentOplock returns TRUE if there are opportunistic locks (oplocks) that are currently being held. Otherwise, it returns FALSE.

Remarks

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.

Requirements

Target platform

Universal

Version

The FsRtlCurrentOplock routine is available starting with Windows Vista.

Header

Ntifs.h (include Ntifs.h)

Library

Ntoskrnl.lib

IRQL

<= APC_LEVEL

See also

FltCurrentOplock
FsRtlInitializeOplock

 

 

Send comments about this topic to Microsoft

Show:
© 2015 Microsoft