Wia.OnDeviceConnected event
Event that occurs when a new Windows Image Acquisition (WIA) hardware device is connected.
Syntax
Wia.OnDeviceConnected(
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 new hardware device is connected to the computer. Implement the objWia_OnDeviceConnected() subroutine to allow the script or application to respond to the device connection.
For example, you might want a script to refresh the Devices collection when a new device is installed.
Requirements
Requirement | Value |
---|---|
Minimum supported client |
Windows 2000 Professional, Windows XP [desktop apps only] |
Minimum supported server |
Windows Server 2003 [desktop apps only] |
DLL |
|