Elo TouchSystems Entuitive ET1725L Series User Manual page 147

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

Advertisement

MagTek Device Drivers for Windows
}
#else
gets(str);
strcat(str, "\n");
ch = str[0];
#endif
switch (ch)
{
case 0x1a:
printf("\n---Exit---\n");//@@
quit = TRUE;
break;
default:
if (ch < 0x100)
{
BOOL
DWORD
#ifdef SINGLE_CHARS
rs = WriteFile(drv_h, &ch, 1, &ret_len, &ov_w);
#else
rs = WriteFile(drv_h, str, strlen(str), &ret_len, &ov_w);
#endif
if (!rs)
{
ws = GetLastError ();
if ( ws != ERROR_IO_PENDING)
}
rs = GetOverlappedResult (
if (!rs)
{
ws = GetLastError ();
printf("Write Error : %i (0x%x)\n", ws, ws );
}
}
else
{
}
break;
} /* switch (ch) */
// give output thread chance to catch 'quit' character from driver
// @@ there should be a better way to do this
if (ch == 0x1b)
}
}
#define BUFSZ
128
void
output_thread
{
BOOL
rs;
48
// <Ctrl-Z> - emergency exit
rs;
ret_len;
printf("DeviceIOControl (Write) Error : %i (0x%x)\n", ws, ws );
drv_h,
&ov_w,
&ret_len,
TRUE
);
Sleep(200);
(void *vp)
// handle
// address of overlapped structure
// address of actual bytes count
// wait flag

Advertisement

Table of Contents
loading

Table of Contents