WIA Device Commands

The following constants form the set of valid Windows Image Acquisition (WIA) hardware device commands.

Constant Description
WIA_CMD_SYNCHRONIZE
Causes the device's minidriver to synchronize cached items with the hardware device. If the device supports the IWiaItem::AnalyzeItem method, issuing this command causes the minidriver to discard the analysis results and reset the item to its initial state. All drivers must support this command.
WIA_CMD_TAKE_PICTURE
Causes a WIA device to acquire an image.
WIA_CMD_DELETE_ALL_ITEMS
Tells the device to delete all items that can be deleted from the tree of IWiaItem objects that represent the device. Item deletion is prevented by setting the item's properties. For details, see IWiaPropertyStorage::SetPropertyStream and Property Attributes.
WIA_CMD_CHANGE_DOCUMENT
Used for document scanners. Causes the scanner to load the next page in its document handler.
WIA_CMD_UNLOAD_DOCUMENT
Used for document scanners. Tells the device to unload all remaining pages in its document handler.
WIA_CMD_START_FEEDER
Used for document scanners that have a page feeder. Tells the device to start the feeder motor. This feature is available starting with Windows 8.
Note: The WIA minidriver must reject this command and return WIA_ERROR_INVALID_COMMAND when the WIA_IPS_FEEDER_CONTROL property is not supported, or is set to WIA_FEEDER_CONTROL_AUTO.
WIA_CMD_STOP_FEEDER
Used for document scanners that have a page feeder. Tells the device to stop the feeder motor. This feature is available starting with Windows 8.
Note: The WIA minidriver must reject this command and return WIA_ERROR_INVALID_COMMAND when the WIA_IPS_FEEDER_CONTROL property is not supported, or is set to WIA_FEEDER_CONTROL_AUTO.
WIA_CMD_PAUSE_FEEDER
Used for document scanners that have a page feeder. Tells the device to pause the feeder motor. This feature is available starting with Windows 8.
Note: The WIA minidriver must reject this command and return WIA_ERROR_INVALID_COMMAND when the WIA_IPS_FEEDER_CONTROL property is not supported, or is set to WIA_FEEDER_CONTROL_AUTO.

Requirements

Requirement Value
Minimum supported client
Windows 2000 Professional, Windows XP [desktop apps only]
Minimum supported server
Windows Server 2003 [desktop apps only]
Header
Wiadef.h