C++ Example - Elo TouchSystems Entuitive ET1725L Series User Manual

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

Advertisement

C++ EXAMPLE

The following is an example of C++:
/* -------------------------------------------------------------------------- */
/*
/*
/*
MTDTEST.C - Test module for Mag-Tek device drivers
/* -------------------------------------------------------------------------- */
/* Version 1.00
/* -------------------------------------------------------------------------- */
#include <windows.h>
#include <stdio.h>
#include <conio.h>
#include <string.h>
/* --- Static variables ----------------------------------------------------- */
static volatile BOOL
static char
static HANDLE
static HANDLE
static HANDLE
static OVERLAPPED
/* --- Macro definitions ---------------------------------------------------- */
#define OPEN_DEVICE(name)
CreateFile(
(name),
GENERIC_READ | GENERIC_WRITE,/* DWORD
0,
NULL,
OPEN_EXISTING,
0
|
FILE_FLAG_OVERLAPPED,
NULL
)
/* --- Internal Function Prototypes ----------------------------------------- */
void
input_thread
void
output_thread
/* --- Main ----------------------------------------------------------------- */
int main ( int argc, char *argv[])
{
HANDLE
ret_h;
DWORD
ws;
DWORD
retdw;
int
stage=1;
TST: Test Application
quit = FALSE;
sbuff[128];
drv_h;
in_threadh;
out_threadh;
ov_r, ov_w;
/* LPCTSTR - pointer to name of the file */ \
/* DWORD
/* LPSECURITY_ATTRIBUTES
/*
/* DWORD
/* DWORD
/* HANDLE
(void *p);
(void *p);
Section 5. Example Applications
$Revision::
- access (read-write) mode
- share mode
- pointer to security attribs */ \
- how to create
- file attributes
- template handle
*/
*/
*/
$ */
\
\
*/ \
*/ \
*/ \
*/ \
\
*/ \
*/ \
45

Advertisement

Table of Contents
loading

Table of Contents