This topic contains 4 replies, has 3 voices, and was last updated by Addison 5 months ago.
January 22, 2014 at 3:35 pm #22911
How can i extract Information about hardware ID/Container ID/Device ID/ Vender ID ?
I have written a Twain APP and I am using DSM_Entry function to open the DSM and then doing
enumuration of devices using GET_NEXT and getting the information in TW_IDENTITY parameter which is the last parameter for DSM_Entry function. But my requirement is to get hardware ID/Container ID/Device ID/ Vender ID which I am not getting.
does anybody knows what is InfoHook function in twain_32.dll and what it does?
where can I get latest twain_32.dll and twain.h file for my implementation?
Please do help me on this as I am new to TWAIN.
SharadJanuary 30, 2014 at 5:08 pm #26062
TWAIN doesn’t expose hardware specific information, because there’s no common hardware system, or agreed upon way of exposing such systems (which is why TWAIN is hiding it in the first place). Over the life of TWAIN scanners have been connected using Serial Ports, Parallel Ports, SCSI, 1394, USB, Ethernet, Bluetooth and Wi-Fi. Every vendor gets to implement the bottom part of a TWAIN driver (the bit that talks to the scanner) in whatever way they want.
So, by definition, anything that’s being done to access a device directly must be doing so outside of the functionality that the TWAIN driver offers. Put another way, it’s not a vendor supported feature.
This doesn’t mean that it can’t be done, but it requires intimate knowledge of the way the scanner is supported by the operating system. For instance, if you know that the scanner is USB and is running on Windows, then it becomes possible to check to see which USBSCAN# device is currently in use by the process currently running the TWAIN driver. That information can be used to browse the registry to find related information specific to Windows and USB.February 13, 2014 at 5:40 am #26063
As you said it is possible to get some information if we knows which OS and what kind of connection it is.. In My case I am using USB scanner device on Windows Platform.. Can you plz let me know how can I get information for this ?February 13, 2014 at 6:28 pm #26064
Study the following:
For Windows XP and earlier look at:
Connect and disconnect your device and note the changes occurring to keys in these areas…July 8, 2017 at 4:56 am #30281
This question belong to TWAIN for C# forum. However I checked latest twaincstst project. 220-902 practice test