WdfInterruptWdmGetInterrupt, fonction (wdfinterrupt.h)

[S’applique à KMDF uniquement]

La méthode WdfInterruptWdmGetInterrupt retourne un pointeur vers l’objet d’interruption WDM associé à un objet d’interruption d’infrastructure spécifié.

Syntaxe

PKINTERRUPT WdfInterruptWdmGetInterrupt(
  [in] WDFINTERRUPT Interrupt
);

Paramètres

[in] Interrupt

Handle pour un objet d’interruption de framework.

Valeur retournée

La méthode WdfInterruptWdmGetInterrupt retourne un pointeur vers une structure KINTERRUPT . Cette méthode retourne null si elle est appelée avant l’appel de la fonction de rappel EvtInterruptEnable du pilote ou après que la fonction de rappel EvtInterruptDisable du pilote est retournée.

Un bogue case activée se produit si le pilote fournit un handle d’objet non valide.

Remarques

Pointeur retourné par la méthode WdfInterruptWdmGetInterrupt jusqu’à ce que la fonction de rappel EvtInterruptDisable du pilote retourne.

Pour plus d’informations sur la gestion des interruptions dans les pilotes basés sur l’infrastructure, consultez Gestion des interruptions matérielles.

Exemples

L’exemple de code suivant obtient un pointeur vers la structure KINTERRUPT associée à un objet d’interruption de framework spécifié.

PKINTERRUPT  wdmInterrupt;

wdmInterrupt = WdfInterruptWdmGetInterrupt(Interrupt);

Configuration requise

Condition requise Valeur
Plateforme cible Universal
Version KMDF minimale 1.0
En-tête wdfinterrupt.h (inclure Wdf.h)
Bibliothèque Wdf01000.sys (consultez Gestion des versions de la bibliothèque d’infrastructure).)
IRQL <= DIRQL
Règles de conformité DDI DriverCreate(kmdf)

Voir aussi

KINTERRUPT