Platform SDK: Fax Services

IFaxStatus

The FaxStatus dual interface is used by a fax client application to retrieve status information for a specific port on a connected fax server. The IFaxStatus interface includes the following interface methods:

The FaxStatus object should only be created by a FaxPort object.

You can use the FaxStatus object to provide real-time status information about a parent FaxPort object. Some data is available at all times for an active fax port; other data is relative to sending or receiving a fax and is only available at those times.

When to Implement

You should not implement this interface. The Microsoft® standard implementation provides complete functionality.

When to Use

Use the IFaxStatus interface to update the status information for a specific fax port, and to retrieve the properties of a FaxStatus object.

A client application should not call the CoCreateInstance function to retrieve an IFaxStatus interface pointer. Instead, the application must perform the following steps to create an instance of a FaxStatus object:

  1. Call the CoCreateInstance function to retrieve a pointer to an IFaxServer interface.
  2. Call the IFaxServer::Connect method to connect to an active fax server.
  3. Call the IFaxServer::GetPorts method to create and initialize a FaxPorts object for the connected fax server.
  4. Call the IFaxPorts::get_Count method and then the IFaxPorts::get_Item method to retrieve IDispatch interface pointers for each child FaxPort object. (You can also call the IUnknown::QueryInterface method to retrieve an IFaxPort interface pointer.)
  5. Use the IDispatch interface pointer to call the IFaxPort::GetStatus interface method, to retrieve an IDispatch interface pointer to a FaxStatus object.
  6. Use the IDispatch interface pointer to call IFaxStatus interface methods.
  7. Call the IFaxServer::Disconnect method to disconnect from the fax server.
  8. Call the IUnknown::Release method for each FaxStatus object to allow the object to deallocate itself. Also call IUnknown::Release once for each FaxPort object, and again to destroy both the IFaxPorts and the parent IFaxServer interface pointers.

The property methods of the IFaxStatus interface retrieve the properties described following. For each property that supports read access, the IFaxStatus interface includes a get_PropertyName method.

Following are the properties associated with a FaxStatus object. You can find a complete list of IFaxStatus interface methods in Vtable order following the list of properties.

Property Type Access Description
Address BSTR R Destination address for an outbound fax job on the specified port.
CallerID BSTR R Information that identifies the calling device that sent the incoming fax transmission on the specified port.
Csid BSTR R Called station identifier (CSID) associated with the fax transmission on the specified port.
CurrentPage LONG R Active page number of the current outbound fax transmission on the specified port.
Description BSTR R String that describes the current status of the specified port.
DeviceId LONG R Permanent line identifier of the specified fax port.
DeviceName BSTR R User-friendly display name for the specified fax port.
DocumentName BSTR R User-friendly document name associated with an active outbound fax transmission on the specified port.
DocumentSize LONG R Size, in bytes, of the fax document associated with an active outbound job on the specified port.
ElapsedTime DATE R Elapsed time, in seconds, for an active fax job on the specified port.
PageCount LONG R Total number of pages in an outbound fax transmission on the specified port.
Receive BOOL R Value that indicates whether the specified fax port is currently receiving a fax transmission.
RecipientName BSTR R Name of the recipient of the inbound fax transmission on the specified port.
RoutingString BSTR R String that contains routing data for inbound transmissions on the fax port; routing data is specific to a fax service provider.
Send BOOL R Value that indicates whether the specified fax port is currently sending a fax transmission.
SenderName BSTR R Name of the sender who queued the outbound fax job on the specified port.
StartTime DATE R Time, expressed in UTC, when the active fax job began transmitting a document on the specified port.
SubmittedTime DATE R Time, expressed in UTC, when the user submitted the outbound fax job on the specified port.
Tsid BSTR R Transmitting station identifier (TSID) associated with the fax transmission on the specified port.

Methods in Vtable Order

IUnknown Methods

IDispatch Methods

IFaxStatus Methods

Method Description
get_CallerId Retrieves a string that identifies the calling device that sent the inbound fax transmission.
get_Csid Retrieves the called station identifier (CSID) associated with the fax transmission.
get_CurrentPage Retrieves the active page number of the current outbound fax transmission.
get_DeviceId Retrieves the permanent line identifier for the specified fax port.
get_DeviceName Retrieves the user-friendly name for the specified fax port.
get_DocumentName Retrieves the user-friendly document name associated with the active outbound fax transmission.
get_Send Retrieves a value that indicates whether the fax port is currently sending a fax transmission.
get_Receive Retrieves a value that indicates whether the fax port is currently receiving a fax transmission.
get_Address Retrieves the destination address for an outbound fax job on the specified port.
get_RoutingString Retrieves a string that contains routing data for inbound transmissions on the specified port; routing data is specific to a fax service provider.
get_SenderName Retrieves the name of the sender who queued the outbound fax job on the specified port.
get_RecipientName Retrieves the name of the recipient of the inbound fax transmission on the specified port.
get_DocumentSize Retrieves the size, in bytes, of the fax document associated with the active outbound job on the specified port.
get_Description Retrieves a string that describes the current status of the specified port.
get_PageCount Retrieves the total number of pages in the outbound fax transmission on the specified fax port.
get_Tsid Retrieves the transmitting station identifier (TSID) associated with the fax transmission.
get_StartTime Retrieves the time, expressed in UTC, when the active fax job began transmitting a document on the specified port.
get_SubmittedTime Retrieves the time, expressed in UTC, when the user submitted the outbound fax job on the specified port.
get_ElapsedTime Retrieves the elapsed time, in seconds, for the active fax job on a specified port.
Refresh Updates the FaxStatus object information for the associated parent FaxPort object.

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