Platform SDK: Fax Services

Terminating a Fax Job

A fax client application can terminate a fax transmission that is in progress. For more information about changing the status of a fax job, see Modifying a Fax Job.

In the Win32 Environment

A fax client application can call the FaxSetJob function or the FaxAbort function to cancel a fax transmission that is in progress.

Note that an application must first call the FaxConnectFaxServer function to obtain a fax server handle before calling the FaxAbort function or the FaxSetJob function.

In the COM Implementation Environment

If you are writing a C/C++ application, after you create a FaxJob object you can call the IFaxJob::SetStatus method to terminate the fax job. You must specify JC_DELETE in the Command parameter.

If you are writing a Visual Basic application, after you create a FaxJob object you can call the SetStatus method of the object to cancel the fax job by specifying the constant JC_DELETE. Note that you must define this constant.