MagTek Device Drivers for Windows
48
}
#else
gets(str);
strcat(str, "\n");
ch = str[0];
#endif
switch (ch)
{
case 0x1a:
// <Ctrl-Z> - emergency exit
printf("\n---Exit---\n");//@@
quit = TRUE;
break;
default:
if (ch < 0x100)
{
BOOL
rs;
DWORD
ret_len;
#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)
printf("DeviceIOControl (Write) Error : %i (0x%x)\n", ws, ws );
}
rs = GetOverlappedResult (
drv_h,
// handle
&ov_w,
// address of overlapped structure
&ret_len,
// address of actual bytes count
TRUE
// wait flag
);
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)
Sleep(200);
}
}
#define BUFSZ
128
void
output_thread
(void *vp)
{
BOOL
rs;
Содержание ET1725L Series
Страница 1: ......
Страница 26: ...3 22 E l o E n t u i t i v e T o u c h m o n i t o r U s e r G u i d e...
Страница 37: ...C 33 17 LCD Touchmonitor Dimensions 478 434 429 370 338 270 3 43 219...
Страница 41: ...37 N10051...
Страница 42: ...38 E l o E n t u i t i v e T o u c h m o n i t o r U s e r G u i d e...
Страница 52: ...vi Figure 1 1 Port Powered Swipe Reader...
Страница 56: ...Port Powered Swipe Reader 4 Figure 1 3 Dimensions...
Страница 60: ...Port Powered Swipe Reader 8...
Страница 69: ...vi Figure 1 1 USB Swipe Reader...
Страница 73: ...USB Swipe Reader 4...
Страница 77: ...USB Swipe Reader 8...
Страница 79: ...USB Swipe Reader 10...
Страница 99: ...viii Figure 1 1 MagTek Devices and Device Drivers for Windows MTD MagTek Device Drivers for Windows...
Страница 127: ...MagTek Device Drivers for Windows 28...
Страница 137: ...MagTek Device Drivers for Windows 38...
Страница 151: ...MagTek Device Drivers for Windows 52...
Страница 173: ...MagTek Device Drivers for Windows 74...
Страница 175: ...MagTek Device Drivers for Windows 76...
Страница 177: ...MagTek Device Drivers for Windows 78...
Страница 192: ......