Condividi tramite


struttura SERCX2_CUSTOM_RECEIVE_TRANSACTION_CONFIG (sercx.h)

La struttura SERCX2_CUSTOM_RECEIVE_TRANSACTION_CONFIG contiene informazioni usate dalla versione 2 dell'estensione del framework seriale (SerCx2) per configurare un nuovo oggetto custom-receive-transaction.

Sintassi

typedef struct _SERCX2_CUSTOM_RECEIVE_TRANSACTION_CONFIG {
  ULONG                                                              Size;
  PFN_SERCX2_CUSTOM_RECEIVE_TRANSACTION_INITIALIZE                   EvtSerCx2CustomReceiveTransactionInitialize;
  PFN_SERCX2_CUSTOM_RECEIVE_TRANSACTION_START                        EvtSerCx2CustomReceiveTransactionStart;
  PFN_SERCX2_CUSTOM_RECEIVE_TRANSACTION_CLEANUP                      EvtSerCx2CustomReceiveTransactionCleanup;
  PFN_SERCX2_CUSTOM_RECEIVE_TRANSACTION_ENABLE_NEW_DATA_NOTIFICATION EvtSerCx2CustomReceiveTransactionEnableNewDataNotification;
  PFN_SERCX2_CUSTOM_RECEIVE_TRANSACTION_QUERY_PROGRESS               EvtSerCx2CustomReceiveTransactionQueryProgress;
} SERCX2_CUSTOM_RECEIVE_TRANSACTION_CONFIG, *PSERCX2_CUSTOM_RECEIVE_TRANSACTION_CONFIG;

Membri

Size

Dimensione, in byte, di questa struttura. Il metodo SerCx2CustomReceiveTransactionCreate usa questo membro per determinare la versione della struttura utilizzata dal chiamante. Le dimensioni di questa struttura potrebbero cambiare nelle versioni future del file di intestazione Sercx.h.

EvtSerCx2CustomReceiveTransactionInitialize

Puntatore al driver implementato EvtSerCx2CustomReceiveTransactionInitialize funzione di callback degli eventi. Questo membro è facoltativo e può essere impostato su NULL per indicare che il driver non implementa la funzione.

EvtSerCx2CustomReceiveTransactionStart

Puntatore al driver implementato EvtSerCx2CustomReceiveTransactionStart funzione di callback degli eventi. Questo membro deve puntare a una funzione valida.

EvtSerCx2CustomReceiveTransactionCleanup

Puntatore alla funzione di callback degli eventi implementata dal driver EvtSerCx2CustomReceiveTransactionCleanup. Questo membro è facoltativo e può essere impostato su NULL per indicare che il driver non implementa la funzione.

EvtSerCx2CustomReceiveTransactionEnableNewDataNotification

Puntatore al driver implementato EvtSerCx2CustomReceiveTransactionEnableNewDataNotification funzione di callback degli eventi. Questo membro è facoltativo e può essere impostato su NULL per indicare che il driver non implementa la funzione.

EvtSerCx2CustomReceiveTransactionQueryProgress

Puntatore al driver implementato EvtSerCx2CustomReceiveTransactionQueryProgress funzione di callback degli eventi. Questo membro deve puntare a una funzione valida.

Osservazioni

Il metodo SerCx2CustomReceiveTransactionCreate accetta un puntatore a una struttura SERCX2_CUSTOM_RECEIVE_TRANSACTION_CONFIG come parametro di input. Prima di chiamare SerCx2CustomReceiveTransactionInitialize, chiamare la funzione SERCX2_CUSTOM_RECEIVE_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

EvtSerCx2CustomReceiveTransactionCleanup

EvtSerCx2CustomReceiveTransactionEnableNewDataNotification

EvtSerCx2CustomReceiveTransactionInitialize

EvtSerCx2CustomReceiveTransactionQueryProgress

EvtSerCx2CustomReceiveTransactionStart

SERCX2_CUSTOM_RECEIVE_TRANSACTION_CONFIG_INIT

SerCx2CustomReceiveTransactionCrea