- This topic has 1 reply, 2 voices, and was last updated 10 years, 12 months ago by .
Viewing 2 posts - 1 through 2 (of 2 total)
Viewing 2 posts - 1 through 2 (of 2 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 get list of available sources without driver window
Hi All,
I started with using TWAIN in VB.NET (should be addtionally to WIA where not all scanner capabilities are supported). I found a quite comprehensive example. But there the source is selected by driver window. How can I retrieve this list without usage of this window?
Best Regards
Duddits
Hi Duddits…
Check out DG_CONTROL / DAT_IDENTITY / MSG_GETFIRST and DG_CONTROL / DAT_IDENTITY / MSG_GETNEXT. The TW_MEMREF argument is a pointer to a TW_IDENTITY structure. The TW_IDENTITY.ProductName returned by these calls is the value used by the Data Source Manager to select which driver to open when calling DG_CONTROL / DAT_IDENTITY / MSG_OPENDS…
— Mark