I'm developing a scanning application and I'd like to enable the Scan button only when my/any scanner is available.
I tried achieve this with GdPicture but without any success (btw. it's really poor library, don't use it). I also tried to get some kind of similar event using Atalasoft's TWAIN and lower-level TWAIN library (which I found thanks to that post). None worked.
I also have an idea to detect new devices connected to the computer and than rescan for TWAIN devices but maybe anyone of you know better solution. Any ideas?
You may need to write a wrapper yourself for a scanner. If the above mentioned libraries have no API to tell the scanner's status, you can try to connect to the scanner, if you get connected it means the scanner is up. I think they provide connection API for a scanner.