I'm considering adding support for WIA to our application. I am using the demo at ImageAcquitision\WIAScanner to test against one of the most common scanners used by our customers, a DocketPort 687. This is a duplex A6 scanner, used by our customers to scan drivers licenses and insurance cards.
The Scanner Info tab for this scanner was not making sense. Capabilities were not present that I expected. After looking closer at the code and help file, I'm fairly sure there is a bug on line 326:
temp := GetDeviceProperty(WIA_DPS_SHEET_FEEDER_REGISTRATION);
//!!! Shouldn't this be WIA_DPS_DOCUMENT_HANDLING_CAPABILITIES ???
CheckBox3.Checked := (temp and WIA_FEED) <> 0; // readonly
CheckBox4.Checked := (temp and WIA_FLAT) <> 0; // readonly
CheckBox5.Checked := (temp and WIA_DUP) <> 0; // readonly
CheckBox6.Checked := (temp and WIA_DETECT_FLAT) <> 0; // readonly
CheckBox7.Checked := (temp and WIA_DETECT_SCAN) <> 0; // readonly
CheckBox8.Checked := (temp and WIA_DETECT_FEED) <> 0; // readonly
CheckBox9.Checked := (temp and WIA_DETECT_DUP) <> 0; // readonly
CheckBox10.Checked := (temp and WIA_DETECT_FEED_AVAIL) <> 0; // readonly
CheckBox11.Checked := (temp and WIA_DETECT_DUP_AVAIL) <> 0; // readonly
Edit35.Text := GetDeviceProperty(WIA_DPS_DOCUMENT_HANDLING_CAPACITY); // readonly