Función FsRtlNotifyVolumeEventEx (ntifs.h)

La rutina FsRtlNotifyVolumeEventEx notifica a las aplicaciones registradas que se está produciendo un evento de volumen. Los eventos de volumen incluyen el volumen bloqueado, desbloqueado, montado o hecho de solo lectura.

Sintaxis

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

Parámetros

[in] FileObject

Puntero a un FILE_OBJECT que especifica un volumen.

[in] EventCode

Código de evento para el evento que se está produciendo. Para obtener una tabla de códigos de evento, consulte FsRtlNotifyVolumeEvent.

[in] Event

Puntero a la estructura de notificación personalizada inicializada (TARGET_DEVICE_CUSTOM_NOTIFICATION) que se va a usar.

Valor devuelto

Devuelve STATUS_SUCCESS si se ejecuta correctamente u otro valor NTSTATUS pertinente, como STATUS_INVALID_PARAMETER, si EventCode no es válido.

Comentarios

Nota Al especificar el parámetro Event como una notificación de volumen personalizada, establezca los siguientes miembros del objeto TARGET_DEVICE_CUSTOM_NOTIFICATION de la siguiente manera:

Versión a 1.

FileObject en NULL.

 

Requisitos

Requisito Value
Cliente mínimo compatible Windows Vista
Plataforma de destino Universal
Encabezado ntifs.h (incluya FltKernel.h, Ntifs.h)
Library NtosKrnl.lib
Archivo DLL NtosKrnl.exe
IRQL <=DISPATCH_LEVEL

Consulte también

FsRtlNotifyVolumeEvent

IoRegisterPlugPlayNotification

IoUnregisterPlugPlayNotification

TARGET_DEVICE_CUSTOM_NOTIFICATION