FltOplockKeysEqual function (fltkernel.h)

The FltOplockKeysEqual routine compares the opportunistic lock (oplock) keys that are stored in the file object extensions of two file objects.

Syntax

BOOLEAN FLTAPI FltOplockKeysEqual(
  [in, optional] PFILE_OBJECT Fo1,
  [in, optional] PFILE_OBJECT Fo2
);

Parameters

[in, optional] Fo1

A pointer to the first file object for the comparison.

[in, optional] Fo2

A pointer to the second file object for the comparison.

Return value

The FltOplockKeysEqual routine returns TRUE if the keys match or if the file object pointers are the same. FltOplockKeysEqual returns FALSE if the keys do not match, if either of the file objects is missing, or if either of the file objects does not have a key.

Remarks

If no oplock key was provided when the file objects were created, the file objects are considered to match if the file object pointers are the same (that is, they are the same file object). If the file object pointers are different and either or both of the file objects do not have an associated oplock key, the file objects are considered to not match.

Requirements

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

See also

FsRtlOplockKeysEqual