WdfControlDeviceInitSetShutdownNotification, fonction (wdfcontrol.h)

[S’applique à KMDF uniquement]

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 que le pilote a obtenue en appelant WdfControlDeviceInitAllocate.

[in] Notification

Pointeur vers la fonction de rappel d’événement 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

None

Remarques

Le pilote doit appeler WdfControlDeviceInitSetShutdownNotification avant d’appeler WdfDeviceCreate. Pour plus d’informations sur l’appel de WdfControlDeviceInitSetShutdownNotification, consultez Utilisation d’objets d’appareil de contrôle.

Exemples

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

Configuration requise

Condition requise Valeur
Plateforme cible Universal
Version KMDF minimale 1.0
En-tête wdfcontrol.h (inclure Wdf.h)
Bibliothèque Wdf01000.sys (consultez Gestion des versions de la bibliothèque d’infrastructure).)
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