Skip to content

Remove IRP_MJ_ACQUIRE_FOR_SECTION_SYNCHRONIZATION from the list of "g… #1616

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
wants to merge 1 commit into
base: staging
Choose a base branch
from
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -145,10 +145,12 @@ A minifilter driver calls **FltCheckOplockEx** to synchronize an IRP-based I/O o

* IRP_MJ_ACQUIRE_FOR_SECTION_SYNCHRONIZATION

The I/O operation must be an IRP-based I/O operation. To determine whether a given callback data structure represents an IRP-based I/O operation, use the [FLT_IS_IRP_OPERATION](/previous-versions/ff544654(v=vs.85)) macro.
With the exception of IRP_MJ_ACQUIRE_FOR_SECTION_SYNCHRONIZATION, the I/O operation must be an IRP-based I/O operation. To determine whether a given callback data structure represents an IRP-based I/O operation, use the [FLT_IS_IRP_OPERATION](/previous-versions/ff544654(v=vs.85)) macro.

Minifilters must not call **FltCheckOplockEx** again within the callback specified in *WaitCompletionRoutine*. Doing so can result in a deadlock condition if the oplock package calls the completion callback before **FltCheckOplockEx** returns.

**FltCheckOplockEx** will only every return FLT_PREOP_SUCCESS_WITH_CALLBACK when the major function is IRP_MJ_ACQUIRE_FOR_SECTION_SYNCHRONIZATION. Calling **FltCheckOplockEx** is supported on all OS versions from Windows 7/Server 2008 (TBC!).

For more information about opportunistic locks, see [Opportunistic Locks](/windows/win32/fileio/opportunistic-locks).

## -see-also
Expand Down