SERCX2_CUSTOM_RECEIVE_TRANSACTION_CONFIG struttura (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 di ricezione personalizzata.

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;

Members

Size

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

EvtSerCx2CustomReceiveTransactionInitialize

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

EvtSerCx2CustomReceiveTransactionStart

Puntatore alla funzione di callback dell'evento EvtSerCx2CustomReceiveTransactionStart implementata dal driver. Questo membro deve puntare a una funzione valida.

EvtSerCx2CustomReceiveTransactionCleanup

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

EvtSerCx2CustomReceiveTransactionEnableNewDataNotification

Puntatore alla funzione di callback dell'evento EvtSerCx2CustomReceiveTransactionEnableNewDataNotification . Questo membro è facoltativo e può essere impostato su NULL per indicare che il driver non implementa la funzione.

EvtSerCx2CustomReceiveTransactionQueryProgress

Puntatore alla funzione di callback dell'evento EvtSerCx2CustomReceiveTransactionQueryProgress implementata dal driver. Questo membro deve puntare a una funzione valida.

Commenti

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.

Requisiti

Requisito Valore
Client minimo supportato Supportato a partire da Windows 8.1.
Intestazione sercx.h

Vedi anche

EvtSerCx2CustomReceiveTransactionCleanup

EvtSerCx2CustomReceiveTransactionEnableNewDataNotification

EvtSerCx2CustomReceiveTransactionInitialize

EvtSerCx2CustomReceiveTransactionQueryProgress

EvtSerCx2CustomReceiveTransactionStart

SERCX2_CUSTOM_RECEIVE_TRANSACTION_CONFIG_INIT

SerCx2CustomReceiveTransactionCreate