Terminating a Fax
To close a fax job gracefully after all fax operations have completed, the fax service calls the FaxDevEndJob function. At this time, the fax service provider (FSP) should deallocate any job-specific instance data that was allocated by the FaxDevStartJob function during job initialization.
The fax service calls the FaxDevAbortOperation function asynchronously to request that an FSP terminate a send or receive fax operation that is still active. FaxDevAbortOperation should post the termination request and return immediately. Even if FaxDevAbortOperation terminates an operation, the fax service still calls the FaxDevEndJob function.
The FSP must export both the FaxDevEndJob and FaxDevAbortOperation functions.