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 exclude some devices on UserSelect Message

Forums › TWAIN Direct › How to exclude some devices on UserSelect Message

  • This topic has 2 replies, 1 voice, and was last updated 2 months ago by ZO.
Viewing 3 posts - 1 through 3 (of 3 total)
  • Author
    Posts
  • October 24, 2020 at 6:04 am #52594 Reply
    Ivan
    • Topics - 102
    • Replies - 197
    • Total Posts - 299

    Hello.
    I develop application to work with MFD and I use your driver.

    First of all I call DsmOpen method ;
    After that I ask and add only online sources into my List of objects (3 of 5 in a list), which locates in my Twain.class.

    And my question is Why when I call DG_CONTROL, DAT_IDENTITY, MSG_USERSELECT I again get full list of my devices?

    October 24, 2020 at 8:32 am #52595 Reply
    Ivan
    • Topics - 102
    • Replies - 197
    • Total Posts - 299

    If I use my own Form before MSG_USERSELECT I get exception DG DAT MSG out of expected sequence

    October 28, 2020 at 9:19 am #52601 Reply
    MarkM
    • Topics - 102
    • Replies - 197
    • Total Posts - 299

    I recommend against using MSG_USERSELECT. You’re much better off providing your own dialog. That way you can enumerate the available drivers using DG_CONTROL/DAT_IDENTITY/MSG_GETFIRST and DG_CONTROL/DAT_IDENTITY/MSG_GETNEXT, which will allow you to filter for drivers in any way you want before presenting the list to the user.

  • Author
    Posts
Viewing 3 posts - 1 through 3 (of 3 total)
Reply To: How to exclude some devices on UserSelect Message
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.