- This topic has 0 replies, 1 voice, and was last updated 14 years, 11 months ago by .
Viewing 1 post (of 1 total)
Viewing 1 post (of 1 total)
The TWAIN Resource site is designed to help TWAIN users and prospective users find resources in the community for TWAIN-related products and services. Become a member.
Home › Forums › TWAIN Classic › How To Pass Context Data With TWAIN Callback Routine
I register a callback routine to the TWAIN event as follows:
TW_CALLBACK callback = {0};
callback.CallBackProc = (TW_MEMREF)TwainCallback;
TW_UINT16 ret = DSM_Entry( DG_CONTROL,
DAT_CALLBACK,
MSG_REGISTER_CALLBACK,
(TW_MEMREF)&callback );
Inside the TwainCallback routine, I need to access some user context data. How do I pass such user data (an object) here with calling register so that it can be retrieved inside the callback function?
Thanks.