184.108.40.206.14 FaxObs_Abort (Opnum 12)
The FaxObs_Abort (Opnum 12) method is called by the client to abort the specified fax job on the server. The value for the JobId parameter can be obtained by calling the FaxObs_EnumJobs (section 220.127.116.11.9) or FaxObs_SendDocument (section 18.104.22.168.7) method.
In response, the server MUST validate that the job identifier specified by JobId is for a valid job. The server MUST validate that the client's fax user account has write access to the job. On success, the server MUST terminate the specified fax job that is queued or in progress.
error_status_t FaxObs_Abort( [in] handle_t hBinding, [in] DWORD JobId );
hBinding: The RPC binding handle for this call. The client SHOULD reuse the RPC binding handle used as an input hBinding argument for the FaxObs_ConnectionRefCount (section 22.214.171.124.2) method call used to connect to the fax server.
Return Values: This method MUST return 0x00000000 (ERROR_SUCCESS) for success; otherwise, it MUST return one of the following error codes, one of the fax-specific errors that are defined in section 2.2.52, or one of the other standard errors defined in [MS-ERREF] section 2.2.
Access is denied. This error code is returned under any of the following conditions:
§ The client's fax user account does not have the FAX_ JOB_MANAGE access rights.
§ The client's fax user account is not the owner of the fax job identified by the JobId parameter.
The parameter is incorrect. This error code is returned when any of the following conditions are met:
§ The fax job identified by the specified JobId cannot be found by the fax server.
§ The specified job has already been canceled or is in the process of being canceled.
§ The specified JobId represents the job for an outgoing broadcast message; aborting outgoing broadcast messages is not supported.