IoGetOplockKeyContext - NtDoc

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

POPLOCK_KEY_ECP_CONTEXT IoGetOplockKeyContext(
  PFILE_OBJECT FileObject
);
View the official Windows Driver Kit DDI reference

NtDoc

No description available.

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

Description

The IoGetOplockKeyContext routine returns a target 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_ECP_CONTEXT structure containing the target oplock key for FileObject. Otherwise, NULL if FileObject has no target oplock key.

Remarks

Use the IoGetOplockKeyContext routine only in Windows 7. Because IoGetOplockKeyContextEx returns a dual oplock key context, it should be used in Windows 8 and later versions of Windows.

See also

IoGetOplockKeyContextEx

OPLOCK_KEY_CONTEXT

OPLOCK_KEY_ECP_CONTEXT