Section 5. Example Applications
45
C++ EXAMPLE
The following is an example of C++:
/* -------------------------------------------------------------------------- */
/*
TST: Test Application
*/
/*
*/
/*
MTDTEST.C - Test module for Mag-Tek device drivers
*/
/* -------------------------------------------------------------------------- */
/* Version 1.00
$Revision::
$ */
/* -------------------------------------------------------------------------- */
#include <windows.h>
#include <stdio.h>
#include <conio.h>
#include <string.h>
/* --- Static variables ----------------------------------------------------- */
static volatile BOOL
quit = FALSE;
static char
sbuff[128];
static HANDLE
drv_h;
static HANDLE
in_threadh;
static HANDLE
out_threadh;
static OVERLAPPED
ov_r, ov_w;
/* --- Macro definitions ---------------------------------------------------- */
#define OPEN_DEVICE(name)
\
CreateFile(
\
(name),
/* LPCTSTR - pointer to name of the file */ \
GENERIC_READ | GENERIC_WRITE,/* DWORD
- access (read-write) mode
*/ \
0,
/* DWORD
- share mode
*/ \
NULL,
/* LPSECURITY_ATTRIBUTES
*/ \
/*
- pointer to security attribs */ \
OPEN_EXISTING,
/* DWORD
- how to create
*/ \
0
|
\
FILE_FLAG_OVERLAPPED,
/* DWORD
- file attributes
*/ \
NULL
/* HANDLE
- template handle
*/ \
)
/* --- Internal Function Prototypes ----------------------------------------- */
void
input_thread
(void *p);
void
output_thread
(void *p);
/* --- Main ----------------------------------------------------------------- */
int main ( int argc, char *argv[])
{
HANDLE
ret_h;
DWORD
ws;
DWORD
retdw;
int
stage=1;
Содержание Entuitive 1229L
Страница 1: ......
Страница 11: ...1 6 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...
Страница 13: ...2 8 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 Product Overview Main Unit Rear View...
Страница 14: ...2 9 Side View Base Bottom View...
Страница 22: ...2 17 Connect one end of the MSR cable to the computer and the other end to the monitor MSR cable...
Страница 43: ...4 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...
Страница 54: ...C 49...
Страница 55: ...C 50 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...
Страница 59: ...54 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...
Страница 70: ...vii...
Страница 71: ...Figure 1 1 USB Swipe Reader viii...
Страница 75: ...USB HID Keyboard Emulation Swipe Reader 4...
Страница 79: ...USB HID Keyboard Emulation Swipe Reader 8...
Страница 81: ...USB HID Keyboard Emulation Swipe Reader 10...
Страница 103: ...vi Figure 1 1 Port Powered Swipe Reader...
Страница 107: ...Port Powered Swipe Reader 4 Figure 1 3 Dimensions...
Страница 111: ...Port Powered Swipe Reader 8...
Страница 115: ...Port Powered Swipe Reader 12...
Страница 123: ...viii Figure 1 1 MagTek Devices and Device Drivers for Windows MTD MagTek Device Drivers for Windows...
Страница 151: ...MagTek Device Drivers for Windows 28...
Страница 161: ...MagTek Device Drivers for Windows 38...
Страница 175: ...MagTek Device Drivers for Windows 52...
Страница 197: ...MagTek Device Drivers for Windows 74...
Страница 199: ...MagTek Device Drivers for Windows 76...
Страница 201: ...MagTek Device Drivers for Windows 78...
Страница 220: ...i Customer Displays 2 by 20 character display USER MANUAL Models LD9000 Series...
Страница 249: ......