IFaxJobs::get_Item method (faxcom.h)

The IFaxJobs::get_Item method returns a new FaxJob object for a specified fax job. The object allows enumeration of the fax jobs associated with a connected fax server.

Syntax

HRESULT get_Item(
  [in]  long    Index,
  [out] VARIANT *pVal
);

Parameters

[in] Index

Type: LONG

Specifies a LONG variable that indicates the fax job to retrieve. Valid values for this parameter are in the range from 1 to n, where n is the number of FaxJob objects returned by a call to the IFaxJobs::get_Count method.

[out] pVal

Type: VARIANT*

Receives a pointer to a VARIANT structure that receives an IDispatch interface pointer to a FaxJob object. The method returns a ppdispVal member with a VT_DISPATCH data type.

Return value

Type: HRESULT

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

Remarks

A fax client application can also access the IFaxJob interface directly by calling the IUnknown::QueryInterface method to retrieve an IFaxJob interface pointer.

Requirements

Requirement Value
Minimum supported client Windows 2000 Professional [desktop apps only]
Minimum supported server Windows 2000 Server [desktop apps only]
Target Platform Windows
Header faxcom.h
DLL Faxcom.dll

See also

Fax Service Client API Interfaces

Fax Service Client API for Windows 2000

GetJobs

IFaxJob

IFaxJobs

IFaxJobs::get_Count

IUnknown