- This topic has 2 replies, 1 voice, and was last updated 2 months ago by .
Viewing 3 posts - 1 through 3 (of 3 total)
Viewing 3 posts - 1 through 3 (of 3 total)
Forums › TWAIN Direct › How to exclude some devices on UserSelect Message
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?
If I use my own Form before MSG_USERSELECT I get exception DG DAT MSG out of expected sequence
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.