Platform SDK: Fax Services

IFaxJob::get_Type

The IFaxJob::get_Type method retrieves the Type property for a FaxJob object. The Type property is a number that describes the type of fax job represented by the object.

Visual Basic Reference

HRESULT get_Type(
  LONG *pVal  // receives job type
);

Parameters

pVal
[out] Pointer to a numeric value that describes the type of the specified fax job. This value can be one of the following job types.
Value Meaning
JT_SEND The job is an outgoing fax transmission.
JT_RECEIVE The job is an incoming fax transmission.
JT_UNKNOWN The job type is unknown. This value indicates that the fax server has not yet scheduled the job.
JT_ROUTING The fax server tried to route the fax transmission, but routing failed. The fax server will attempt to route the job again.
JT_FAIL_RECEIVE The fax server did not route the fax because it did not receive the entire transmission. The fax server saves the partial transmission in a temporary directory.

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.

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, IFaxJob, IFaxJobs