Partager via


WdfControlDeviceInitSetShutdownNotification, fonction (wdfcontrol.h)

[S’applique uniquement à KMDF]

La méthode WdfControlDeviceInitSetShutdownNotification définit les informations de notification d’arrêt pour un objet d’appareil de contrôle.

Syntaxe

void WdfControlDeviceInitSetShutdownNotification(
  [in] PWDFDEVICE_INIT                      DeviceInit,
  [in] PFN_WDF_DEVICE_SHUTDOWN_NOTIFICATION Notification,
  [in] UCHAR                                Flags
);

Paramètres

[in] DeviceInit

Pointeur vers une structure WDFDEVICE_INIT obtenue par le pilote en appelant WdfControlDeviceInitAllocate.

[in] Notification

Pointeur vers la fonction de rappel d’événements EvtDeviceShutdownNotification du pilote.

[in] Flags

Un ou plusieurs indicateurs WDF_DEVICE_SHUTDOWN_FLAGS-typés qui indiquent quand la fonction de rappel EvtDeviceShutdownNotification sera appelée.

Valeur de retour

Aucun

Remarques

Le pilote doit appeler WdfControlDeviceInitSetShutdownNotification avant d’appeler WdfDeviceCreate. Pour plus d’informations sur l’appel WdfControlDeviceInitSetShutdownNotification, consultez Using Control Device Objects.

Exemples

Pour obtenir un exemple de code qui utilise WdfControlDeviceInitSetShutdownNotification, consultez WdfControlDeviceInitAllocate.

Exigences

Exigence Valeur
plateforme cible Universel
version minimale de KMDF 1.0
d’en-tête wdfcontrol.h (include Wdf.h)
bibliothèque Wdf01000.sys (voir Versioning de la bibliothèque Framework.)
IRQL <= DISPATCH_LEVEL
règles de conformité DDI ControlDeviceInitAPI(kmdf), DriverCreate(kmdf), KmdfIrql(kmdf), KmdfIrql2(kmdf), KmdfIrqlExplicit(kmdf)

Voir aussi

EvtDeviceShutdownNotification

WDFDEVICE_INIT

WDF_DEVICE_SHUTDOWN_FLAGS

WdfDeviceCreate