Fonction FsRtlNotifyVolumeEventEx (ntifs.h)

La routine FsRtlNotifyVolumeEventEx avertit toutes les applications inscrites qu’un événement de volume se produit. Les événements de volume incluent le volume verrouillé, déverrouillé, monté ou en lecture seule.

Syntaxe

NTSTATUS FsRtlNotifyVolumeEventEx(
  [in] PFILE_OBJECT                       FileObject,
  [in] ULONG                              EventCode,
  [in] PTARGET_DEVICE_CUSTOM_NOTIFICATION Event
);

Paramètres

[in] FileObject

Pointeur vers un FILE_OBJECT qui spécifie un volume.

[in] EventCode

Code d’événement pour l’événement qui se produit. Pour obtenir une table de codes d’événement, consultez FsRtlNotifyVolumeEvent.

[in] Event

Pointeur vers la structure de notification personnalisée initialisée (TARGET_DEVICE_CUSTOM_NOTIFICATION) à utiliser.

Valeur retournée

Retourne STATUS_SUCCESS sur la réussite ou une autre valeur NTSTATUS pertinente, telle que STATUS_INVALID_PARAMETER, si l’EventCode n’est pas valide.

Remarques

Note Lorsque vous spécifiez le paramètre Event comme notification de volume personnalisée, définissez les membres suivants de l’objet TARGET_DEVICE_CUSTOM_NOTIFICATION comme suit :

Version 1.

FileObject to NULL.

 

Configuration requise

Condition requise Valeur
Client minimal pris en charge Windows Vista
Plateforme cible Universal
En-tête ntifs.h (include FltKernel.h, Ntifs.h)
Bibliothèque NtosKrnl.lib
DLL NtosKrnl.exe
IRQL <=DISPATCH_LEVEL

Voir aussi

FsRtlNotifyVolumeEvent

IoRegisterPlugPlayNotification

IoUnregisterPlugPlayNotification

TARGET_DEVICE_CUSTOM_NOTIFICATION