Wia.Devices property

Collection of DeviceInfo objects that represents all of the devices installed on the computer. Read-only.

Note

This collection is 0-based.

 

This property is read-only.

Syntax

propVal = Wia.Devices

Property value

Examples

The following example illustrates the use of the Devices collection to enumerate the devices on a system.

<SCRIPT LANGUAGE = "VBScript">
Dim objWia
Dim objDeviceInfoCollection
Dim objDeviceInfo
 
Set objWia = CreateObject("Wia.Script")
 
Set objDeviceInfoCollection = objWia.Devices
 
For Each objDeviceInfo In objDeviceInfoCollection
    ! Do something with the DeviceInfo object
Next
</SCRIPT>

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)