// fltkernel.h
VOID FLTAPI FltInitializeOplock(
[out] POPLOCK Oplock
);
View the official Windows Driver Kit DDI referenceNo description available.
The FltInitializeOplock routine initializes an opportunistic lock (oplock) pointer.
Oplock [out]Caller-supplied pointer variable that receives the initialized opaque oplock pointer. This variable must be initialized to NULL before the initial call to FltInitializeOplock.
None
When the oplock pointer is no longer needed, it can be uninitialized by calling FltUninitializeOplock. The uninitialized oplock pointer can then be initialized for reuse by calling FltInitializeOplock.
To request an oplock or respond to an oplock break notification, call FltOplockFsctrl.
For detailed information about opportunistic locks, see the Microsoft Windows SDK documentation.