IoGetOplockKeyContextEx - NtDoc

Native API online documentation, based on the System Informer (formerly Process Hacker) phnt headers
// ntddk.h

POPLOCK_KEY_CONTEXT IoGetOplockKeyContextEx(
  PFILE_OBJECT FileObject
);
View the official Windows Driver Kit DDI reference

NtDoc

No description available.

Windows Driver Kit DDI reference (nf-ntddk-iogetoplockkeycontextex)

Description

The IoGetOplockKeyContext routine returns a dual oplock key context for a file object.

Parameters

FileObject

The file object to query for an oplock key context.

Return value

A pointer to an OPLOCK_KEY_CONTEXT structure containing the parent and target oplock keys for FileObject. Otherwise, NULL if FileObject has no oplock keys.

Remarks

On Windows 8 and later versions of Windows, use IoGetOplockKeyContextEx instead of IoGetOplockKeyContext, as the latter only returns a target oplock key context.

See also

IoGetOplockKeyContext

OPLOCK_KEY_CONTEXT

OPLOCK_KEY_ECP_CONTEXT