TWAIN Working Group

Newsletter Signup
Donate
Help keep TWAIN free
  • About TWAIN
    • What’s New?
    • News
    • Events
    • Membership
    • Consider a Donation
    • Contact Us
  • Why TWAIN?
  • Developers
    • Driver Developer
    • Application Developer
    • TWAIN Features
    • Specification & Tools
    • Self Certification Process
  • Support Forums
  • Scanner End-User
  • Find Certified Drivers
    • Facebook
    • LinkedIn
    • Vimeo

How To Pass Context Data With TWAIN Callback Routine

Forums › TWAIN Classic › How To Pass Context Data With TWAIN Callback Routine

  • This topic has 0 replies, 1 voice, and was last updated 12 years ago by xiaoyuan.
Viewing 1 post (of 1 total)
  • Author
    Posts
  • April 9, 2009 at 9:03 pm #22483 Reply
    xiaoyuan
    Participant
    • Topics - 2
    • Replies - 2
    • Total Posts - 4

    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.

  • Author
    Posts
Viewing 1 post (of 1 total)
Reply To: How To Pass Context Data With TWAIN Callback Routine
Your information:




Quick Links

Service Providers
TWAIN Support Forums
Membership
Contact Us
Privacy Policy

Newsletter Signup

TWAIN Working Group Family

TWAIN Working Group
TWAIN Direct®
TWAIN Resources
TWAIN Certified Drivers
PDF/raster

  • Facebook
  • GitHub
  • LinkedIn
  • Vimeo

Recent Topics

  • TWAIN for dental imaging integration
  • PDF/R For who and where?
  • Making searchable PDF with PDF/R
  • Backward compatibility with PDF/A and traditional PDF
  • could not open the twain source. Make sure there is a valid source for your sca
  • Quarterly Newsletter
  • TWAIN Working Group Membership
  • Logo Usage
  • TWAIN License
  • Contact Us
Privacy Policy • Privacy Tools • Copyright © 2021 TWAIN Working Group • by iHwy, LLC • Log in

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.