Fonction FsRtlInitializeOplock (ntifs.h)

FsRtlInitializeOplock initialise un pointeur de verrou opportuniste (oplock).

Syntaxe

void FsRtlInitializeOplock(
  [in, out] POPLOCK Oplock
);

Paramètres

[in, out] Oplock

Variable de pointeur fournie par l’appelant qui reçoit le pointeur de verrouillage opportuniste initialisé. Cette variable doit être initialisée sur NULL avant l’appel initial à FsRtlInitializeOplock.

Valeur de retour

None

Remarques

Les systèmes de fichiers et les pilotes de filtre appellent FsRtlInitializeOplock pour initialiser un pointeur de verrouillage opportuniste opaque.

Lorsque le pointeur de verrouillage opportuniste n’est plus nécessaire, il peut être non initialisé en appelant FsRtlUninitializeOplock. Le pointeur de verrou opportuniste non initialisé peut ensuite être initialisé pour être réutilisé en appelant FsRtlInitializeOplock.

Pour plus d’informations sur les verrous opportunistes, consultez la documentation Microsoft Windows SDK.

Les minifiltres doivent appeler FltInitializeOplock au lieu de FsRtlInitializeOplock.

Configuration requise

Condition requise Valeur
Plateforme cible Universal
En-tête ntifs.h (inclure Ntifs.h)
Bibliothèque NtosKrnl.lib
DLL NtosKrnl.exe
IRQL <= APC_LEVEL

Voir aussi

FSCTL_OPBATCH_ACK_CLOSE_PENDING

FSCTL_OPLOCK_BREAK_ACKNOWLEDGE

FSCTL_OPLOCK_BREAK_ACK_NO_2

FSCTL_OPLOCK_BREAK_NOTIFY

FSCTL_REQUEST_BATCH_OPLOCK

FSCTL_REQUEST_FILTER_OPLOCK

FSCTL_REQUEST_OPLOCK_LEVEL_1

FSCTL_REQUEST_OPLOCK_LEVEL_2

FltInitializeOplock

FsRtlCheckOplock

FsRtlCurrentBatchOplock

FsRtlOplockFsctrl

FsRtlOplockIsFastIoPossible

FsRtlUninitializeOplock