Share via


EventID Constants

Specifies DeviceManager events as String versions of GUIDs.

Constants

  • wiaEventDeviceConnected ({A28BBADE-64B6-11D2-A231-00C04FA31809})
    EventID for Device Connected. Fires when a Microsoft Windows Image Acquisition (WIA) hardware device is connected to the user's computer or started.

wiaEventDeviceDisconnected ({143E4E83-6497-11D2-A231-00C04FA31809})

EventID for Device Disconnected. Fires when a WIA hardware device is disconnected from the user's computer or stopped.

wiaEventItemCreated ({4C8F4EF5-E14F-11D2-B326-00C04F68CE61})

EventID for Item Created. Fires when an item is added to a WIA Device.

wiaEventItemDeleted ({1D22A559-E14F-11D2-B326-00C04F68CE61})

EventID for Item Deleted. Fires when an item is deleted from a WIA Device.

wiaEventScanImage ({A6C5A715-8C6E-11D2-977A-0000F87A926F})

EventID for Scan Image. Fires when the image button on a scanner is pressed.

wiaEventScanPrintImage ({B441F425-8C6E-11D2-977A-0000F87A926F})

EventID for Scan Print Image. Fires when the print button on a scanner is pressed.

wiaEventScanFaxImage ({C00EB793-8C6E-11D2-977A-0000F87A926F})

EventID for Scan Fax Image. Fires when the fax button on a scanner is pressed.

wiaEventScanOCRImage ({9D095B89-37D6-4877-AFED-62A297DC6DBE})

EventID for Scan OCR Image. Fires when the OCR button on a scanner is pressed.

wiaEventScanEmailImage ({C686DCEE-54F2-419E-9A27-2FC7F2E98F9E})

EventID for Scan E-mail Image. Fires when the e-mail button on a scanner is pressed.

wiaEventScanFilmImage ({9B2B662C-6185-438C-B68B-E39EE25E71CB})

EventID for Scan Film Image. Fires when the film button on a scanner is pressed.

wiaEventScanImage2 ({FC4767C1-C8B3-48A2-9CFA-2E90CB3D3590})

EventID for Scan Image 2. Fires when the second image button on a scanner is pressed.

wiaEventScanImage3 ({154E27BE-B617-4653-ACC5-0FD7BD4C65CE})

EventID for Scan Image 3. This event fires when the third image button on a scanner is pressed.

wiaEventScanImage4 ({A65B704A-7F3C-4447-A75D-8A26DFCA1FDF})

EventID for Scan Image 4. Fires when the fourth image button on a scanner is pressed.

Remarks

Use EventID Constants as the value for the EventID parameter for the RegisterEvent, RegisterPersistentEvent, UnregisterEvent, and UnregisterPersistentEvent methods. The EventID parameter in the OnEvent event also takes an EventID constant value.

The following example shows how to register the wiaEventDeviceConnected event for all devices.


DeviceManager1.RegisterEvent wiaEventDeviceConnected, wiaAnyDeviceID

The following example shows how to handle a wiaEventDeviceConnected event.


Private Sub DeviceManager1_OnEvent(EventID, DeviceID, ItemID)
    If EventID = wiaEventDeviceConnected Then
        MsgBox "A Device has connected"
    End If
End Sub

See Also

EventID