Wia.OnDeviceDisconnected event

Event that occurs when a new Windows Image Acquisition (WIA) hardware device is disconnected.

Syntax

Wia.OnDeviceDisconnected(
  Id
)

Parameters

Id

A string that contains the ID of the connected device.

Return value

This event does not return a value.

Remarks

WIA notifies the script or application whenever a hardware device is disconnected from the computer. Implement the objWia_OnDeviceDisconnected() subroutine to allow the script or application to respond to the device disconnection.

For example, you might want a script to refresh the Devices collection when a device is removed from the computer.

Requirements

Requirement Value
Minimum supported client
Windows 2000 Professional, Windows XP [desktop apps only]
Minimum supported server
Windows Server 2003 [desktop apps only]
DLL
Wiascr.dll (version 4.90 or later)