IFaxDevices::get_ItemById method (faxcomex.h)

The IFaxDevices::get_ItemById method returns a FaxDevice object from the FaxDevices collection, using its device ID.

Syntax

HRESULT get_ItemById(
  [in]          long       lId,
  [out, retval] IFaxDevice **ppFaxDevice
);

Parameters

[in] lId

Type: long

The unique ID of the device to retrieve.

[out, retval] ppFaxDevice

Type: ppFaxDevice**

A FaxDevice object.

Return value

Type: HRESULT

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

Remarks

To retrieve an item from the FaxDevices collection using the device's index, call the Item property.

Requirements

Requirement Value
Minimum supported client Windows XP [desktop apps only]
Minimum supported server Windows Server 2003 [desktop apps only]
Target Platform Windows
Header faxcomex.h

See also

FaxDevices

IFaxDevices

Visual Basic Example