Funzione FsRtlNotifyVolumeEventEx (ntifs.h)

La routine FsRtlNotifyVolumeEventEx notifica a tutte le applicazioni registrate che si verifica un evento del volume. Gli eventi del volume includono il volume bloccato, sbloccato, montato o reso di sola lettura.

Sintassi

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

Parametri

[in] FileObject

Puntatore a un FILE_OBJECT che specifica un volume.

[in] EventCode

Codice evento per l'evento che si verifica. Per una tabella di codici evento, vedere FsRtlNotifyVolumeEvent.

[in] Event

Puntatore alla struttura di notifica personalizzata inizializzata (TARGET_DEVICE_CUSTOM_NOTIFICATION) da usare.

Valore restituito

Restituisce STATUS_SUCCESS in caso di esito positivo o di un altro valore NTSTATUS pertinente, ad esempio STATUS_INVALID_PARAMETER, se EventCode non è valido.

Commenti

Nota Quando si specifica il parametro Event come notifica del volume personalizzata, impostare i membri seguenti dell'oggetto TARGET_DEVICE_CUSTOM_NOTIFICATION come indicato di seguito:

Versione su 1.

FileObject su NULL.

 

Requisiti

Requisito Valore
Client minimo supportato Windows Vista
Piattaforma di destinazione Universale
Intestazione ntifs.h (include FltKernel.h, Ntifs.h)
Libreria NtosKrnl.lib
DLL NtosKrnl.exe
IRQL <=DISPATCH_LEVEL

Vedi anche

FsRtlNotifyVolumeEvent

IoRegisterPlugPlayNotification

IoUnregisterPlugPlayNotification

TARGET_DEVICE_CUSTOM_NOTIFICATION