Platform SDK: Fax Services

IFaxDoc::Send

The IFaxDoc::Send method transmits the document specified by the FileName property of a FaxDoc object. The method can send the fax to the fax number specified by the FaxNumber property, the CallHandle property, or the ConnectionObject property of the object.

Visual Basic Reference

HRESULT Send(
  LONG *pVal  // receives fax job identifier
);

Parameters

pVal
[out] Specifies a pointer to a variable to receive a unique number that identifies the queued job that will send the fax transmission.

Return Values

Returns an HRESULT value indicating success or failure. If the method succeeds, it returns S_OK. Otherwise, it returns a COM-defined error code.

You should not check directly for success or failure. Use the COM SUCCEEDED and FAILED macros instead.

Remarks

The FileName property is required to send a fax transmission using a call to the IFaxDoc::Send method. The FaxNumber property is also required, unless you specify either the CallHandle property or the ConnectionObject property. For more information, see Transmitting Faxes.

Requirements

  Windows NT/2000: Requires Windows 2000.
  Windows 95/98: Unsupported.
  Header: Declared in faxcom.h.
  Import Library: Included as a resource in faxcom.dll.

See Also

Fax Service Client Application Programming Interface Overview, Fax Service Client API Interfaces, IFaxDoc, IFaxDoc::put_FaxNumber, IFaxDoc::put_FileName, IFaxDoc::putref_ConnectionObject, IFaxDoc::put_CallHandle