Platform SDK: Fax Services |
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.
HRESULT Send( LONG *pVal // receives fax job identifier );
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.
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.
Windows NT/2000: Requires Windows 2000.
Windows 95/98: Unsupported.
Header: Declared in faxcom.h.
Import Library: Included as a resource in faxcom.dll.
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