Skip to content

Latest commit

 

History

History
75 lines (56 loc) · 2.55 KB

nf-ntifs-_fsrtl_advanced_fcb_header-fsrtlcurrentoplockh.md

File metadata and controls

75 lines (56 loc) · 2.55 KB
UID title description old-location tech.root ms.date keywords ms.keywords req.header req.include-header req.target-type req.target-min-winverclnt req.target-min-winversvr req.kmdf-ver req.umdf-ver req.ddi-compliance req.unicode-ansi req.idl req.max-support req.namespace req.assembly req.type-library req.lib req.dll req.irql targetos req.typenames f1_keywords topic_type api_type api_location api_name
NF:ntifs.FsRtlCurrentOplockH
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.
ifsk\fsrtlcurrentoplockh.htm
ifsk
04/16/2018
FsRtlCurrentOplockH function
FsRtlCurrentOplockH, FsRtlCurrentOplockH function [Installable File System Drivers], fsrtlref_4997ca62-379d-45d8-bc22-32efd2076692.xml, ifsk.fsrtlcurrentoplockh, ntifs/FsRtlCurrentOplockH
ntifs.h
Ntifs.h
Universal
The FsRtlCurrentOplockH routine is available starting with Windows 7.
NtosKrnl.lib
NtosKrnl.exe
<= APC_LEVEL
Windows
FsRtlCurrentOplockH
ntifs/FsRtlCurrentOplockH
APIRef
kbSyntax
DllExport
NtosKrnl.exe
FsRtlCurrentOplockH

FsRtlCurrentOplockH function

-description

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

-parameters

-param Oplock [in]

An opaque opportunistic lock pointer for the file. This pointer must have been initialized by a previous call to FsRtlInitializeOplock.

-returns

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.

-see-also

FltCurrentOplockH

FsRtlInitializeOplock