![background image](http://html1.mh-extra.com/html/carrol-touch/touchsystems-carrolltouch-prog/touchsystems-carrolltouch-prog_programmers-manual_2564265109.webp)
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);
Содержание TouchSystems CarrollTouch Prog
Страница 1: ...CARROLL TOUCH TOUCH PRODUCTS an company AMP Touch System Programmer s Guide ...
Страница 11: ...Table of Contents CARROLL TOUCH viii ...
Страница 13: ...Table of Contents CARROLL TOUCH x ...
Страница 17: ...Welcome CARROLL TOUCH xiv Touch System Programmer s Guide ...
Страница 25: ...Chapter 1 Introduction to Infrared Touch Systems CARROLL TOUCH 1 8 Touch System Programmer s Guide ...
Страница 29: ...Chapter 2 Introduction to Guided Wave Touch Systems CARROLL TOUCH 2 4 Touch System Programmer s Guide ...
Страница 41: ...Chapter 3 General Programming Issues CARROLL TOUCH 3 12 Touch System Programmer s Guide ...
Страница 57: ...Chapter 4 Smart Frame Protocol CARROLL TOUCH 4 16 Touch System Programmer s Guide ...
Страница 87: ...Chapter 6 Touch Application Program Interface TAPI CARROLL TOUCH 6 10 Touch System Programmer s Guide ...
Страница 149: ...Appendix A Smart Frame Protocol Command Reference CARROLL TOUCH A 40 Touch System Programmer s Guide ...
Страница 179: ...Appendix B Smart Frame Protocol II Function Reference CARROLL TOUCH B 30 Touch System Programmer s Guide ...
Страница 237: ...Appendix D CTKERN Function Reference CARROLL TOUCH D 42 Touch System Programmer s Guide ...