Elo TouchSystems Entuitive ET1725L Series User Manual page 148

17" lcd desktop touchmonitor with magnetic swipe reader
Table of Contents

Advertisement

DWORD
read_len=0;
char
wbuff[1];
char*
p;
while (!quit)
{
rs = ReadFile(drv_h, wbuff, sizeof(wbuff), &read_len, &ov_r);
if ( !rs)
{
rs = GetLastError ();
if ( rs != ERROR_IO_PENDING)
{
printf("DeviceIOControl (Read) Error : %i (0x%x)\n", rs, rs );
break;
}
}
rs = WaitForSingleObject ( ov_r.hEvent, INFINITE);
rs = GetOverlappedResult (
drv_h,
&ov_r,
&read_len,
FALSE
);
if (quit)
if ( rs )
{
p = wbuff;
while (read_len >0)
{
if (*p == 0x1a)
putch (*p);
++p;
--read_len;
}
}
}
};
// end of file
// handle of file, pipe, or communications device
// address of overlapped structure
// address of actual bytes count
// wait flag
break;
{
quit = TRUE;
printf("\n\nExiting Test...");
break;
}
Section 5. Example Applications
49

Advertisement

Table of Contents
loading

Table of Contents