展开 最小化

FsRtlCurrentOplockH function

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

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.

Requirements

Version

The FsRtlCurrentOplockH routine is available starting with Windows 7.

Header

Ntifs.h (include Ntifs.h)

Library

Ntoskrnl.lib

IRQL

<= APC_LEVEL

See also

FltCurrentOplockH
FsRtlInitializeOplock

 

 

Send comments about this topic to Microsoft

显示:
© 2014 Microsoft