FltOplockIsSharedRequest function (fltkernel.h)

The FltOplockIsSharedRequest routine determines if a request for an opportunistic lock (oplock) wants a shared oplock.

Syntax

BOOLEAN FLTAPI FltOplockIsSharedRequest(
  [in] PFLT_CALLBACK_DATA CallbackData
);

Parameters

[in] CallbackData

A pointer to the callback data (FLT_CALLBACK_DATA) structure for the I/O operation. The caller must ensure that the I/O operation has a major code of IRP_MJ_FILE_SYSTEM_CONTROL and a minor code of IRP_MN_USER_FS_REQUEST.

Return value

FltOplockIsSharedRequest returns TRUE if the oplock request is for a shared oplock (that is, a level 2, R, or RH oplock). FltOplockIsSharedRequest returns FALSE if the oplock request is not for a shared oplock or if the I/O operation is not an oplock request. For more information about oplock types, see Oplock Semantics Overview.

Requirements

Requirement Value
Minimum supported client The FltOplockIsSharedRequest routine is available starting with Windows 7.
Target Platform Universal
Header fltkernel.h (include Fltkernel.h)
Library FltMgr.lib
DLL Fltmgr.sys
IRQL <= APC_LEVEL

See also

FsRtlOplockIsSharedRequest