Wia object

The Wia object is the entry point for all Windows Image Acquisition (WIA) scripting functionality. Any application that uses the WIA scripting model must create a SafeWia or Wia object. Use that object to enumerate and create devices and to receive notification of hardware events.

Note

This object is not safe for scripting. For a version of this object that is safe for scripting, see SafeWia.

 

Members

The Wia object has these types of members:

Events

The Wia object has these events.

Event Description
OnDeviceConnected Event that occurs when a new WIA hardware device is connected.
OnDeviceDisconnected Event that occurs when a new WIA hardware device is disconnected.
OnTransferComplete Event that occurs when a data transfer is completed successfully.

 

Methods

The Wia object has these methods.

Method Description
Create The Create method of the Wia object makes a connection to the specified WIA device, and returns an Item object that represents the device.

 

Properties

The Wia object has these properties.

Property Access type Description
Devices
Read-only
Collection of DeviceInfo objects that represents all of the devices installed on the computer. Read-only.
Note: This collection is 0-based.

 

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)
IID
CLSID_Wia