Specifications
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);










