struttura SERCX2_CUSTOM_TRANSMIT_TRANSACTION_CONFIG (sercx.h)
La struttura SERCX2_CUSTOM_TRANSMIT_TRANSACTION_CONFIG contiene informazioni usate dalla versione 2 dell'estensione del framework seriale (SerCx2) per configurare un nuovo oggetto di transazione di trasmissione personalizzata.
Sintassi
typedef struct _SERCX2_CUSTOM_TRANSMIT_TRANSACTION_CONFIG {
ULONG Size;
PFN_SERCX2_CUSTOM_TRANSMIT_TRANSACTION_INITIALIZE EvtSerCx2CustomTransmitTransactionInitialize;
PFN_SERCX2_CUSTOM_TRANSMIT_TRANSACTION_START EvtSerCx2CustomTransmitTransactionStart;
PFN_SERCX2_CUSTOM_TRANSMIT_TRANSACTION_CLEANUP EvtSerCx2CustomTransmitTransactionCleanup;
} SERCX2_CUSTOM_TRANSMIT_TRANSACTION_CONFIG, *PSERCX2_CUSTOM_TRANSMIT_TRANSACTION_CONFIG;
Membri
Size
Dimensione, in byte, di questa struttura. Il metodo SerCx2CustomTransmitTransactionCreate usa questo membro per determinare quale versione della struttura sta utilizzando il chiamante. Le dimensioni di questa struttura potrebbero cambiare nelle versioni future del file di intestazione Sercx.h.
EvtSerCx2CustomTransmitTransactionInitialize
Puntatore alla funzione di callback degli eventi implementata dal driver EvtSerCx2CustomTransmitTransactionInitialize. Questo membro è facoltativo e può essere impostato su NULL per indicare che il driver non implementa la funzione.
EvtSerCx2CustomTransmitTransactionStart
Puntatore alla funzione di callback degli eventi implementata dal driver EvtSerCx2CustomTransmitTransactionStart. Questo membro deve puntare a una funzione valida.
EvtSerCx2CustomTransmitTransactionCleanup
Puntatore al driver implementato EvtSerCx2CustomTransmitTransactionCleanup funzione di callback degli eventi. Questo membro è facoltativo e può essere impostato su NULL per indicare che il driver non implementa la funzione.
Osservazioni
Il metodo SerCx2CustomTransmitTransactionCreate accetta un puntatore a una struttura SERCX2_CUSTOM_TRANSMIT_TRANSACTION_CONFIG come parametro di input. Prima di chiamare SerCx2CustomTransmitTransactionInitialize, chiamare la funzione SERCX2_CUSTOM_TRANSMIT_TRANSACTION_CONFIG_INIT per inizializzare questa struttura.
Fabbisogno
Requisito | Valore |
---|---|
client minimo supportato | Supportato a partire da Windows 8.1. |
intestazione |
sercx.h |
Vedere anche
EvtSerCx2CustomTransmitTransactionCleanup
EvtSerCx2CustomTransmitTransactionInitialize
EvtSerCx2CustomTransmitTransactionStart