Our company has just evaluated and licensed the GdPicture ActiveX control and related technologies. I am working on updating our product to use the GdPicture-based TWAIN interfaces in place of the previous 3rd party control (PajantImage). In doing this, I am having difficulty with device detection. Is there a method to detect whether a device is present?
For example, I have previously installed a Canon scanner but it is not currently connected. The TwainSelectSource, TwainGetSourceCount and TwainGetSourceName methods return or show this device, among others, as an option. How can I seemlessly test for it's presence? I am working on an extended functionality Source Manager dialog and attempting to open this particular Canon scanner device (TwainOpenSource) shows an error dialog indicating the device is not available, interupting my silent background scan of devices. I would like to be able to show the disconnected state of devices in this dialog without additional popups (I have already set the following properties).
TwainSetErrorMessage False
TwainSetHideUI True
TwainSetIndicators False
I understand that some TWAIN drivers may not honor the above requests, I am just trying to find the best way to detect device connection status.
Thank you for any assistance you may be able to provide.

