Partager via


structure IO_DISCONNECT_INTERRUPT_PARAMETERS (wdm.h)

La structure IO_DISCONNECT_INTERRUPT_PARAMETERS décrit les paramètres lors de l’annulation de l’inscription d’une routine de gestion des interruptions avec IoDisconnectInterruptEx.

Syntaxe

typedef struct _IO_DISCONNECT_INTERRUPT_PARAMETERS {
  ULONG Version;
  union {
    PVOID                      Generic;
    PKINTERRUPT                InterruptObject;
    PIO_INTERRUPT_MESSAGE_INFO InterruptMessageTable;
  } ConnectionContext;
} IO_DISCONNECT_INTERRUPT_PARAMETERS, *PIO_DISCONNECT_INTERRUPT_PARAMETERS;

Membres

Version

Spécifie l’opération particulière à effectuer par IoDisconnectInterruptEx. La valeur de Version dépend de la valeur spécifiée pour Parameters->Version lorsque IoConnectInterruptEx inscrit la routine de gestion des interruptions, comme indiqué dans le tableau suivant.

valeur de version IO_CONNECT_INTERRUPT_PARAMETERS valeur IO_DISCONNECT_INTERRUPT_PARAMETERS Version
CONNECT_LINE_BASED CONNECT_LINE_BASED
CONNECT_MESSAGE_BASED Valeur de version sortie par IoConnectInterruptEx.
CONNECT_FULLY_SPECIFIED CONNECT_FULLY_SPECIFIED

ConnectionContext

Pointeur vers la structure KINTERRUPT ou IO_INTERRUPT_MESSAGE_INFO fournie par IoConnectInterruptEx lors de la connexion de l’interruption. La valeur de connectionContext dépend de la valeur spécifiée pour Parameters->Version lorsque IoConnectInterruptEx inscrit la routine de gestion des interruptions, comme indiqué dans le tableau suivant.

Valeur de version IoConnectInterruptEx Valeur ConnectionContext IoDisconnectInterruptEx
CONNECT_LINE_BASED Valeur stockée dans LineBased.InterruptObject.
CONNECT_MESSAGE_BASED Valeur stockée dans MessageBased.ConnectionContext.
CONNECT_FULLY_SPECIFIED Valeur stockée dans FullySpecified.InterruptObject.
 

Pour réduire la conversion, ConnectionContext est défini comme union. Utilisez connectionContext.Generic pour spécifier la valeur en tant que PVOID. Utilisez ConnectionContext.InterruptObject et ConnectionContext.InterruptMessageTable pour spécifier la valeur comme pointeur vers une structure KINTERRUPT ou IO_INTERRUPT_MESSAGE_INFO.

ConnectionContext.Generic

Pointeur vers une structure de données de type non spécifié.

ConnectionContext.InterruptObject

Pointeur vers une structure KINTERRUPT.

ConnectionContext.InterruptMessageTable

Pointeur vers une structure IO_INTERRUPT_MESSAGE_INFO.

Exigences

Exigence Valeur
d’en-tête wdm.h (include Wdm.h, Ntddk.h, Ntifs.h)

Voir aussi

IO_INTERRUPT_MESSAGE_INFO

IoDisconnectInterruptEx

KINTERRUPT