EventID Constants
Specifies DeviceManager events as String versions of GUIDs.
Constant/value | Description |
---|---|
|
EventID for Device Connected. Fires when a WIA hardware device is connected to the user's computer or started. |
|
EventID for Device Disconnected. Fires when a WIA hardware device is disconnected from the user's computer or stopped. |
|
EventID for Item Created. Fires when an item is added to a WIA Device. |
|
EventID for Item Deleted. Fires when an item is deleted from a WIA Device. |
|
EventID for Scan Image. Fires when the image button on a scanner is pressed. |
|
EventID for Scan Print Image. Fires when the print button on a scanner is pressed. |
|
EventID for Scan Fax Image. Fires when the fax button on a scanner is pressed. |
|
EventID for Scan OCR Image. Fires when the OCR button on a scanner is pressed. |
|
EventID for Scan E-mail Image. Fires when the e-mail button on a scanner is pressed. |
|
EventID for Scan Film Image. Fires when the film button on a scanner is pressed. |
|
EventID for Scan Image 2. Fires when the second image button on a scanner is pressed. |
|
EventID for Scan Image 3. This event fires when the third image button on a scanner is pressed. |
|
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
Requirements
Minimum supported client |
Windows Vista [desktop apps only] |
Minimum supported server |
Windows Server 2003 R2 [desktop apps only] |
Header |
|
IDL |
|