The TWAIN Forum

www.twainforum.org
It is currently Fri Feb 24, 2017 5:38 am

All times are UTC - 8 hours [ DST ]




Post new topic Reply to topic  [ 9 posts ] 
Author Message
PostPosted: Wed Jan 22, 2014 8:35 am 
Offline

Joined: Wed Jan 22, 2014 8:26 am
Posts: 12
Hi,

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.

Best Regards,
Sharad


Top
 Profile  
 
PostPosted: Thu Jan 30, 2014 10:08 am 
Offline

Joined: Thu Mar 10, 2005 1:16 pm
Posts: 136
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.


Top
 Profile  
 
PostPosted: Wed Feb 12, 2014 10:40 pm 
Offline

Joined: Wed Jan 22, 2014 8:26 am
Posts: 12
hi mark...

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 ?


Top
 Profile  
 
PostPosted: Thu Feb 13, 2014 11:28 am 
Offline

Joined: Thu Mar 10, 2005 1:16 pm
Posts: 136
Study the following:
HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Control\Class\{6BDD1FC6-810F-11D0-BEC7-08002BE2092F}
HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\services\usbscan\Enum

For Windows XP and earlier look at:
HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Control\DeviceClasses\{6bdd1fc6-810f-11d0-bec7-08002be2092f}

Connect and disconnect your device and note the changes occurring to keys in these areas...


Top
 Profile  
 
PostPosted: Fri May 09, 2014 1:48 am 
Offline

Joined: Fri May 09, 2014 1:45 am
Posts: 1
Hair extensions and hairpieces really can help to improve the looking of people and help to change them a lot hair extensions and hairpieces if choosing the right type and right style of hair wigs for you, of course that you will look and become more and more attractive and also buy cheap hair wigs now is easy as you can just get the ideal style that you want online at online shops now. I have just buy me a long curly hair and it is perfect.


Top
 Profile  
 
PostPosted: Fri May 06, 2016 2:04 am 
Offline

Joined: Thu Jul 23, 2015 12:58 am
Posts: 76
That information can be used to browse the registry to find related information specific to Windows and USB.
gclub iphone


Top
 Profile  
 
PostPosted: Tue Dec 13, 2016 12:20 am 
Offline

Joined: Thu Nov 24, 2016 12:06 am
Posts: 3
I dont know too.

วิธีเล่น sbobet


Top
 Profile  
 
PostPosted: Fri Jan 27, 2017 12:52 am 
Offline

Joined: Thu Nov 24, 2016 12:06 am
Posts: 3
This information is very cool.
princess crown


Top
 Profile  
 
PostPosted: Thu Feb 23, 2017 4:05 am 
Offline

Joined: Fri Jan 20, 2017 12:54 am
Posts: 4
the best betting site, Sbobettm.com
www.th-sbobet.com
www.sbobet-365.com


Top
 Profile  
 
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 9 posts ] 

All times are UTC - 8 hours [ DST ]


Who is online

Users browsing this forum: No registered users and 1 guest


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Search for:
Jump to:  
Powered by phpBB® Forum Software © phpBB Group
[ Time : 0.097s | 14 Queries | GZIP : On ]