CanEasy COM-Help
CanEasy::IDeviceCol Interface Reference

Inherits IDispatch.

Detailed Description

Collection of devices

interface IDeviceCol : IDispatch
{
//VSTAHidden
HRESULT _NewEnum([out, retval] IUnknown** ppItem);
HRESULT Item([in] LONG lIndex, [out, retval] IDevice**);
HRESULT Count([out, retval] LONG* pCount);
HRESULT Delete();
HRESULT Add([in] BSTR sVendor, [in] BSTR sDevice, [in] BSTR sDeviceId, [out, retval] IDevice**);
};

Definition at line 9206 of file cand_tlb.idl.

Member Function Documentation

◆ Add()

HRESULT CanEasy::IDeviceCol::Add ( [in] BSTR  sVendor,
[in] BSTR  sDevice,
[in] BSTR  sDeviceId,
[out, retval] IDevice **   
)

Adds a new device into the collection

Parameters
sVendorVendor name
sDeviceDevice name
sDeviceIdDevice identifier
Returns
Pointer to new created device

◆ Delete()

HRESULT CanEasy::IDeviceCol::Delete ( )

Deletes all devices

Property Documentation

◆ _NewEnum

IUnknown CanEasy::IDeviceCol::_NewEnum
get

Returns enumerator of type IEnumVARIANT

◆ Count

LONG CanEasy::IDeviceCol::Count
get

Returns the count of devices

◆ Item

IDevice CanEasy::IDeviceCol::Item([in] LONG lIndex)
get

Returns item by name or by index (starting from 1)

CanEasy::IDeviceCol::_NewEnum
IUnknown _NewEnum
CanEasy::IDeviceCol::Add
HRESULT Add([in] BSTR sVendor, [in] BSTR sDevice, [in] BSTR sDeviceId, [out, retval] IDevice **)
CanEasy::IDeviceCol::Delete
HRESULT Delete()
CanEasy::IDeviceCol::Item
IDevice Item([in] LONG lIndex)
CanEasy::IDeviceCol::Count
LONG Count