Chapter 8 - Dynamic Link Library (DLL) Functions
CARROLL TOUCH
8-2
Touch System Programmer’s Guide
Calling Windows Driver DLL Functions
All Windows driver functions are exported by ordinal value. To access
these functions, you must:
1. Include a statement similar to the following in the IMPORTS
section of your application’s definitions (
.DEF
) file:
SetTouchEvents = MOUSE.8
2. Specify a function prototype similar to the following in your
application:
void FAR PASCAL SetTouchEvents (LPSTR);
3. Define a data structure similar to the following for the function
parameter:
typedef struct tagTOUCHEVENTS {
char user_touch_event;
char user_untouch_event;
char user_noncontig_event;
}
TOUCHEVENTS_TYPE;
4. Create a variable using the data structure for a function similar to
the following:
static TOUCHEVENTS_TYPE touchevents;
5. Populate the data structure and call the function. All CT Windows
driver functions have either no parameters or a single LPSTR
parameter. Your application must supply an LPSTR type pointer to
a variable that uses the data structure that corresponds to the
function called.
touchevents.user_touch_event= 2;
touchevents.user_untouch_event= 3;
touchevents.user_noncontig_event= 0;
SetTouchEvents (&touchevents);
Summary of Contents for TouchSystems CarrollTouch Prog
Page 1: ...CARROLL TOUCH TOUCH PRODUCTS an company AMP Touch System Programmer s Guide ...
Page 11: ...Table of Contents CARROLL TOUCH viii ...
Page 13: ...Table of Contents CARROLL TOUCH x ...
Page 17: ...Welcome CARROLL TOUCH xiv Touch System Programmer s Guide ...
Page 41: ...Chapter 3 General Programming Issues CARROLL TOUCH 3 12 Touch System Programmer s Guide ...
Page 57: ...Chapter 4 Smart Frame Protocol CARROLL TOUCH 4 16 Touch System Programmer s Guide ...
Page 237: ...Appendix D CTKERN Function Reference CARROLL TOUCH D 42 Touch System Programmer s Guide ...