3-16 MsrReadFullTrack
This function returns MSR Full Track data. If the MSR is in read mode and ERROR Code
is returned, the card has not yet been read by the MSR. Strip the card with the MSR again.
MSRReadCancel function can be used to cancel read mode.
long MsrReadFullTrack (PCHAR Track, UINT uiLength);
[Parameters]
* PCHAR Track
[in, out] MSR Track data read from the buffer defined by the caller.
* UINT uiLength
[in] Size of Track buffer to be sent to the printer
[Return Values]
If the function is successful, MSR Full track data will be returned. Each track data is
separated by 0x1c (format : [track1 data]0x1c[track2 data]0x1c[track3 data]0x1c)
If it has failed, the function will return error code and NULL pointer.
long lResult;
lResult = PrinterOpen(“portinfo…”, 1000);
……
MsrReadReady();
if (GetStat() != BXL_STS_MSR_READY)
return;
char Track [600];
memset(Track, 0, sizeof(Track));
lResult = MsrReadFullTrack(Track, sizeof(Track));
if (lResult != BXL_SUCCESS)
……
else
……
……