5 - 39
theInstance );
SetTimer(hWnd, MSR_TIMER_ID, 1000, lpfnMyTimerProc);
return 1;
}
{
MessageBox( hWnd, "ERROR: Unable to initialize Magnetic Stripe Reader!",
appName, MB_OK );
return 0;
}
}
int ReadMSR ( void )
{
//
// *******************************************************
// * Step 3: Check if any of the tracks were read.
*
// *******************************************************
//
dataReadFromTrack1 = padGetMagTrack ( 1, track1, TRACK1_MAX );
dataReadFromTrack2 = padGetMagTrack ( 2, track2, TRACK2_MAX );
dataReadFromTrack3 = padGetMagTrack ( 3, track3, TRACK3_MAX );
if
(
dataReadFromTrack1 ||
dataReadFromTrack2 ||
dataReadFromTrack3
)
{
//
// At this point we know that at least 1 track was read
// successfully (the last track read, i.e., track 3).
Содержание PadCom TT1500
Страница 1: ... PadCom Point of Sale Terminal Control Library U s e r s G u i d e ...
Страница 88: ...4 2 ...
Страница 129: ......
Страница 130: ......
Страница 131: ......
Страница 132: ... PadCom UG Rev A 4619 Jordan Road P O Box 187 Skaneateles Falls New York 13153 0187 ...