Partager via


Items.Add method

Adds a new Item.

Syntax

Items.Add( _
  ByVal Name As BSTR, _
  ByVal Flags As LONG _
) As HRESULT

Parameters

Name [in]

Type: BSTR

Required. String value.

Flags [in]

Type: LONG

Created by using the OR operation with members of the WiaItemFlag enumeration.

Return value

Type: HRESULT

If this method succeeds, it returns S_OK. Otherwise, it returns an HRESULT error code.

Remarks

As of the release of the Windows Image Acquisition (WIA) Automation Library, there are no imaging devices whose driver supports adding an item to a device.

Requirements

Minimum supported client
Windows Vista [desktop apps only]
Minimum supported server
Windows Server 2003 R2 [desktop apps only]
Header
Wiaaut.h
IDL
Wiaaut.idl

See also

Reference

Name (DeviceCommand)

Name (DeviceEvent)

RegisterPersistentEvent

UnregisterPersistentEvent

Name (Filter)

Name (FilterInfo)

Items

Name (Property)