structure SERCX2_PIO_RECEIVE_CONFIG (sercx.h)

La structure SERCX2_PIO_RECEIVE_CONFIG contient des informations que la version 2 de l’extension d’infrastructure série (SerCx2) utilise pour configurer un nouvel objet PIO-receive.

Syntaxe

typedef struct _SERCX2_PIO_RECEIVE_CONFIG {
  ULONG                                            Size;
  PFN_SERCX2_PIO_RECEIVE_INITIALIZE_TRANSACTION    EvtSerCx2PioReceiveInitializeTransaction;
  PFN_SERCX2_PIO_RECEIVE_CLEANUP_TRANSACTION       EvtSerCx2PioReceiveCleanupTransaction;
  PFN_SERCX2_PIO_RECEIVE_READ_BUFFER               EvtSerCx2PioReceiveReadBuffer;
  PFN_SERCX2_PIO_RECEIVE_ENABLE_READY_NOTIFICATION EvtSerCx2PioReceiveEnableReadyNotification;
  PFN_SERCX2_PIO_RECEIVE_CANCEL_READY_NOTIFICATION EvtSerCx2PioReceiveCancelReadyNotification;
} SERCX2_PIO_RECEIVE_CONFIG, *PSERCX2_PIO_RECEIVE_CONFIG;

Membres

Size

Taille, en octets, de cette structure. La méthode SerCx2PioReceiveCreate utilise ce membre pour déterminer la version de la structure utilisée par l’appelant. La taille de cette structure peut changer dans les versions futures du fichier d’en-tête Sercx.h.

EvtSerCx2PioReceiveInitializeTransaction

Pointeur vers la fonction de rappel d’événement EvtSerCx2PioReceiveInitializeTransaction implémentée par le pilote. Ce membre est facultatif et peut être défini sur NULL pour indiquer que le pilote n’implémente pas la fonction.

EvtSerCx2PioReceiveCleanupTransaction

Pointeur vers la fonction de rappel d’événement EvtSerCx2PioReceiveCleanupTransaction implémentée par le pilote. Ce membre est facultatif et peut être défini sur NULL pour indiquer que le pilote n’implémente pas la fonction.

EvtSerCx2PioReceiveReadBuffer

Pointeur vers la fonction de rappel d’événement EvtSerCx2PioReceiveReadBuffer implémentée par le pilote. Ce membre doit pointer vers une fonction valide.

EvtSerCx2PioReceiveEnableReadyNotification

Pointeur vers la fonction de rappel d’événement EvtSerCx2PioReceiveEnableReadyNotification implémentée par le pilote. Ce membre doit pointer vers une fonction valide.

EvtSerCx2PioReceiveCancelReadyNotification

Pointeur vers la fonction de rappel d’événement EvtSerCx2PioReceiveCancelReadyNotification implémentée par le pilote. Ce membre doit pointer vers une fonction valide.

Remarques

La méthode SerCx2PioReceiveCreate accepte un pointeur vers une structure SERCX2_PIO_RECEIVE_CONFIG comme paramètre d’entrée. Avant d’appeler SerCx2PioReceiveCreate, appelez la fonction SERCX2_PIO_RECEIVE_CONFIG_INIT pour initialiser cette structure.

Configuration requise

Condition requise Valeur
Client minimal pris en charge Pris en charge à partir de Windows 8.1.
En-tête sercx.h

Voir aussi

EvtSerCx2PioReceiveCancelReadyNotification

EvtSerCx2PioReceiveCleanupTransaction

EvtSerCx2PioReceiveEnableReadyNotification

EvtSerCx2PioReceiveInitializeTransaction

EvtSerCx2PioReceiveReadBuffer

SERCX2_PIO_RECEIVE_CONFIG_INIT

SerCx2PioReceiveCreate