MagneticStripeReaderDataReceived
Esse evento é gerado após um evento de verificação msr (leitor de listra magnética) bem-sucedido.
Sintaxe
typedef struct _MSR_DATA_RECEIVED {
MsrCardType CardType;
unsigned char Track1EncryptedDataLength;
unsigned char Track2EncryptedDataLength;
unsigned char Track3EncryptedDataLength;
unsigned char Track4EncryptedDataLength;
unsigned char Track1EncryptedData[MSR_TRACK_SIZE];
unsigned char Track2EncryptedData[MSR_TRACK_SIZE];
unsigned char Track3EncryptedData[MSR_TRACK_SIZE];
unsigned char Track4EncryptedData[MSR_TRACK_SIZE];
unsigned char Track1MaskedDataLength;
unsigned char Track2MaskedDataLength;
unsigned char Track3MaskedDataLength;
unsigned char Track4MaskedDataLength;
unsigned char Track1MaskedData[MSR_TRACK_SIZE];
unsigned char Track2MaskedData[MSR_TRACK_SIZE];
unsigned char Track3MaskedData[MSR_TRACK_SIZE];
unsigned char Track4MaskedData[MSR_TRACK_SIZE];
unsigned char Track1DiscretionaryDataLength;
unsigned char Track2DiscretionaryDataLength;
unsigned char Track1DiscretionaryData[MSR_TRACK_SIZE];
unsigned char Track2DiscretionaryData[MSR_TRACK_SIZE];
unsigned char CardAuthenicationDataLength; // Length of data after encryption, may include padding.
unsigned char CardAuthenticationDataAbsoluteLength; // Length of data before encryption, may be needed to strip padding on decryption.
unsigned char CardAuthenicationData[MSR_CARD_AUTHENTICATION_DATA_SIZE];
unsigned char AdditionalSecurityInformationLength;
unsigned char AdditionalSecurityInformation[MSR_ADDITIONAL_SECURITY_INFORMATION_SIZE];
} MSR_DATA_RECEIVED, *PMSR_DATA_RECEIVED;
A tabela a seguir mostra o layout de memória do buffer de dados para esse evento.
Valor de memória | Descrição |
---|---|
0x00000008 | EventType = PosEventType:: MagneticStripeReaderDataReceived |
UINT32 | DataLength = sizeof(PosEventDataHeader) + sizeof(MSR_DATA_RECEIVED) |
MsrCardType de 32 bits | MsrCardType |
unsigned char | Track1EncryptedDataLength – sempre será zero (0) se MsrDataEncryption for MsrDataEncryption_None. |
unsigned char | Track2EncryptedDataLength – sempre será zero (0) se MsrDataEncryption for MsrDataEncryption_None. |
unsigned char | Track3EncryptedDataLength - sempre será zero (0) se MsrDataEncryption for MsrDataEncryption_None. |
unsigned char | Track4EncryptedDataLength - sempre será zero (0) se MsrDataEncryption for MsrDataEncryption_None. |
unsigned char [MSR_TRACK_SIZE] | Track1EncryptedDataLength bytes de dados criptografados da faixa 1 |
unsigned char [MSR_TRACK_SIZE] | Track2EncryptedDataLength bytes de dados criptografados da faixa 2 |
unsigned char [MSR_TRACK_SIZE] | Track3EncryptedDataLength bytes de dados criptografados da faixa 3 |
unsigned char [MSR_TRACK_SIZE] | Track4EncryptedDataLength bytes de dados criptografados da faixa 4 |
unsigned char | Track1MaskedDataLength |
unsigned char | Track2MaskedDataLength |
unsigned char | Track3MaskedDataLength |
unsigned char | Track4MaskedDataLength |
unsigned char [MSR_TRACK_SIZE] | Track1MaskedDataLength bytes de dados mascarados da faixa 1 |
unsigned char [MSR_TRACK_SIZE] | Track2MaskedDataLength bytes de dados mascarados da faixa 2 |
unsigned char [MSR_TRACK_SIZE] | Track3MaskedDataLength bytes de dados mascarados da faixa 3 |
unsigned char [MSR_TRACK_SIZE] | Bytes Track4MaskedDataLength de dados mascarados da faixa 4 |
unsigned char | Track1DiscretionaryDataLength – sempre será zero (0) se MagneticStripeReaderIsDecodeDataEnabled for false. |
unsigned char | Track2DiscretionaryDataLength – sempre será zero (0) se MagneticStripeReaderIsDecodeDataEnabled for false. |
unsigned char [MSR_TRACK_SIZE] | Track1DiscretionaryDataLength bytes de dados da faixa discricionária 1 |
unsigned char [MSR_TRACK_SIZE] | Track2DiscretionaryDataLength bytes de dados discricionários da faixa 2 |
unsigned char | CardAuthenicationDataLength - comprimento dos dados criptografados em bytes, incluindo preenchimento |
unsigned char | CardAuthenticationDataAbsoluteLength - comprimento dos dados não criptografados em bytes (talvez seja necessário remover o preenchimento durante a descriptografia) |
unsigned char[MSR_ADDITIONAL_SECURITY_INFORMATION_DATA_SIZE] | Bytes CardAuthenticationDataAbsoluteLength de cartão dados de autenticação |
unsigned char | AdditionalSecurityInformationLength |
unsigned char[MSR_ADDITIONAL_SECURITY_INFORMATION_SIZE] | Bytes AdditionalSecurityInformationLength de informações de segurança adicionais |
Requisitos
Cabeçalho: pointofservicedriverinterface.h