Expand Minimize

IoGetOplockKeyContext routine

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

Syntax


POPLOCK_KEY_ECP_CONTEXT IoGetOplockKeyContextEx(
  PFILE_OBJECT FileObject
);

Parameters

FileObject

The file object to query for an oplock key context.

Return value

An 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.

Requirements

Version

The IoGetOplockKeyContext routine is available starting with Windows 7.

Header

Ntddk.h

IRQL

<= DISPATCH_LEVEL

See also

DUAL_OPLOCK_KEY_ECP_CONTEXT
IoGetOplockKeyContextEx
OPLOCK_KEY_ECP_CONTEXT
OPLOCK_KEY_CONTEXT

 

 

Send comments about this topic to Microsoft

Show:
© 2014 Microsoft