IoGetOplockKeyContextEx function (ntddk.h)
The IoGetOplockKeyContext routine returns a dual oplock key context for a file object.
Syntax
POPLOCK_KEY_CONTEXT IoGetOplockKeyContextEx(
PFILE_OBJECT FileObject
);
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.
Requirements
Requirement | Value |
---|---|
Minimum supported client | The IoGetOplockKeyContextEx routine is available starting with Windows 8. |
Target Platform | Universal |
Header | ntddk.h |
Library | Ntoskrnl.lib |
IRQL | <= DISPATCH_LEVEL |
See also
Feedback
https://aka.ms/ContentUserFeedback.
Coming soon: Throughout 2024 we will be phasing out GitHub Issues as the feedback mechanism for content and replacing it with a new feedback system. For more information see:Submit and view feedback for