Bewerken

Delen via


FltInitializeOplock function (fltkernel.h)

The FltInitializeOplock routine initializes an opportunistic lock (oplock) pointer.

Syntax

VOID FLTAPI FltInitializeOplock(
  [out] POPLOCK Oplock
);

Parameters

[out] Oplock

Caller-supplied pointer variable that receives the initialized opaque oplock pointer. This variable must be initialized to NULL before the initial call to FltInitializeOplock.

Return value

None

Remarks

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.

Requirements

Requirement Value
Target Platform Universal
Header fltkernel.h (include Fltkernel.h)
Library FltMgr.lib
DLL Fltmgr.sys
IRQL <= APC_LEVEL

See also

FltCheckOplock

FltCurrentBatchOplock

FltOplockFsctrl

FltOplockIsFastIoPossible

FltUninitializeOplock

FsRtlInitializeOplock