CAP_DEVICEEVENT

Featured Clients

Sectors: FinanceInformation TechnoloyGovernmentHealthcareIndustriesEducation(show all)

TWAIN Capability: CAP_DEVICEEVENT

CAP_DEVICEEVENT

Description

MSG_SET selects which events the Application wants the Source to report. MSG_GET and MSG_GETCURRENT gets the current setting. MSG_RESET resets the capability to the empty array (no events set).

TWDE_CHECKAUTOMATICCAPTURE: The automatic capture settings on the device have been changed by the user.

TWDE_CHECKBATTERY: The status of the battery has changed.

TWDE_CHECKFLASH: The flash setting on the device has been changed by the user.

TWDE_CHECKPOWERSUPPLY:The power supply has been changed (for instance, the user may have just connected AC to a device that was running on battery power).

TWDE_CHECKRESOLUTION: The x/y resolution setting on the device has been changed by the user.

TWDE_DEVICEADDED: The user has added a device (for instance a memory card in a digital camera).

TWDE_DEVICEOFFLINE: A device has become unavailable, but has not been removed.

TWDE_DEVICEREADY: The device is ready to capture an image.

TWDE_DEVICEREMOVED: The user has removed a device.

TWDE_IMAGECAPTURED: The user has captured an image to the device’s internal storage. TWDE_IMAGEDELETED: The user has removed an image from the device’s internal storage. TWDE_PAPERDOUBLEFEED: Two or more sheets of paper have been fed together. TWDE_PAPERJAM: The device’s document feeder has jammed.

TWDE_LAMPFAILURE: The device’s light source has failed. TWDE_CHECKDEVICEONLINE:The device has been turned off and on. TWDE_POWERSAVE: The device has powered down to save energy. TWDE_POWERSAVENOTIFY: The device is about to power down to save energy. TWDE_CUSTOMEVENTS: Baseline for events specific to a given Source.

Application

Set all values and process the TWRC_CHECKSTATUS (if returned) to identify those items supported by the Source. MSG_GET and MSG_GETCURRENT to get a list of currently enabled items.

Source

Values

The startup default must be an empty array. Generate TWRC_CHECKSTATUS and remove unsupported events when an Application requests events not supported by the Source.

Please note that the actions of an Application must never directly generate a device event. For instance, if the user deletes an image using the controls on the device, then the Source should generate an event. If, however, an Application deletes an image in the device (using DG_CONTROL / DAT_FILESYSTEM / MSG_DELETE), then the Source must not generate an event.

Type: TW_UINT

Value after MSG_OPENDS: (may be remembered from a previous session)

After MSG_RESET/MSG_RESETALL: (empty array)

Allowed Values: TWDE_CHECKAUTOMATICCAPTURE TWDE_CHECKBATTERY TWDE_CHECKDEVICEONLINE TWDE_CHECKFLASH TWDE_CHECKPOWERSUPPLY TWDE_CHECKRESOLUTION TWDE_DEVICEADDED TWDE_DEVICEOFFLINE TWDE_DEVICEREADY TWDE_DEVICEREMOVED TWDE_IMAGECAPTURED TWDE_IMAGEDELETED TWDE_PAPERDOUBLEFEED TWDE_PAPERJAM TWDE_LAMPFAILURE TWDE_POWERSAVE TWDE_POWERSAVENOTIFY TWDE_CUSTOMEVENTS

x

Containers

MSG_GET TW_ARRAY

MSG_GETCURRENT TW_ARRAY

MSG_GETDEFAULT TW_ARRAY

MSG_SET TW_ONEVALUE TW_ARRAY

MSG_SETCONSTRAINT TW_ONEVALUE

TW_ARRAY

MSG_RESET TW_ARRAY

MSG_QUERYSUPPORT TW_ONEVALUE

Required By

None

TWAIN Version Introduced

Version 1.8

Related

TWAIN Notice

Where would you like to scan from? Scan in Web Apps Scan in Java Scan in .NET