Jump to content

JohnMo

Newbies
  • Posts

    2
  • Joined

  • Last visited

Posts posted by JohnMo

  1. I figured the dialog was provided by Windows. I don't know exactly how it's handled in the code, but it sounds like the default Windows behavior is to not show the dialog when there's only one device.

    From http://msdn2.microsoft.com/en-us/library/ms630143.aspx:

    If IWiaDevMgr::GetImageDlg finds only one matching device, it will not display the Select Device dialog box. Instead, it will select the matching device. You can override this behavior and force IWiaDevMgr::GetImageDlg to display the Select Device dialog box by passing WIA_SELECT_DEVICE_NODEFAULT as the value for the lFlags parameter.

    Perhaps there's not a combination of lDeviceType and lFlags parameters that will allow device types to be unrestricted while also suppressing the Select Device dialog box. The MSDN article only specifies that the Select Device dialog can be forced with the lFlags parameter and that lDeviceType parameter has to be set to something other than null before there's any chance the Select Device dialog will be skipped.

×
×
  • Create New...