Platform SDK: Fax Services |
The FAX_DEVICE_STATUS structure contains information about the current status of a fax device. In addition to the status, the structure also includes data on whether the device is currently sending or receiving a fax transmission, device and station identifiers, sender and recipient names, and routing information.
typedef struct _FAX_DEVICE_STATUS { DWORD SizeOfStruct; //structure size, in bytes LPCTSTR CallerId; //pointer to calling device LPCTSTR Csid; //pointer to called station identifier DWORD CurrentPage; //current page number; 1-relative DWORD DeviceId; //line identifier //of the receiving device LPCTSTR DeviceName; //pointer to device name LPCTSTR DocumentName; //pointer to document name to display DWORD JobType; //job type (send/receive) LPCTSTR PhoneNumber; //pointer to fax number for //outgoing fax LPCTSTR RoutingString; //pointer to routing string LPCTSTR SenderName; //pointer to sender name LPCTSTR RecipientName; //pointer to recipient name DWORD Size; //size, in bytes, of document FILETIME StartTime; //transmission start time DWORD Status; //status code for device LPCTSTR StatusString; //must be NULL FILETIME SubmittedTime; //time of fax submission DWORD TotalPages; //total pages in transmission LPCTSTR Tsid; //pointer to transmitting //station identifier LPCTSTR UserName; //user who submitted job } FAX_DEVICE_STATUS, *PFAX_DEVICE_STATUS;
Value | Meaning |
---|---|
JT_SEND | The fax device is sending a fax document. |
JT_RECEIVE | The fax device is receiving a fax document. |
JT_UNKNOWN | The fax device is in an unknown or idle state. |
Canonical-Phone-Number[|Additional-Routing-Info]
where Canonical-Phone-Number
is defined in Canonical Addresses in the TAPI documentation; and the format of Additional-Routing-Info
is defined by the recommendation of the standards body of the International Telecommunications Union (ITU) from Study Group 8 (SG8). This recommendation is currently known as "T.Routing."
For more information, see Canonical Addresses in the TAPI documentation.
Value | Meaning |
---|---|
FPS_DIALING | The device is dialing a fax number. |
FPS_SENDING | The device is sending a fax document. |
FPS_RECEIVING | The device is receiving a fax document. |
FPS_COMPLETED | The device has completed sending or receiving a fax transmission. |
FPS_UNAVAILABLE | The device is not available because it is in use by another application. |
FPS_BUSY | The device has encountered a busy signal. |
FPS_NO_ANSWER | The receiving device did not answer the call. |
FPS_BAD_ADDRESS | The device dialed an invalid fax number. |
FPS_NO_DIAL_TONE | The sending device cannot complete the call because it does not detect a dial tone. |
FPS_DISCONNECTED | The fax call was disconnected by the sender or the caller. |
FPS_FATAL_ERROR | The device encountered a fatal protocol error. |
FPS_NOT_FAX_CALL | The device has received a data call or a voice call. |
FPS_CALL_DELAYED | The device delayed a fax call because the sending device received a busy signal multiple times. The device cannot retry the call because dialing restrictions exist. (Some countries restrict the number of retry attempts when a number is busy.) |
FPS_CALL_BLACKLISTED | The device could not complete a call because the telephone number was blocked or reserved; numbers such as 911 are blocked. |
FPS_INITIALIZING | The device is initializing a call. |
FPS_OFFLINE | The device is offline and unavailable. |
FPS_RINGING | The device is ringing. |
FPS_AVAILABLE | The device is available. |
FPS_ABORTING | The device is aborting a fax job. |
FPS_ROUTING | The device is routing a received fax document. |
FPS_ANSWERED | The device answered a new call. |
FPS_HANDLED | The fax service processed the outbound fax document; the fax service provider will transmit the document. |
The fax client application can call the FaxGetDeviceStatus function to retrieve status information for the fax device of interest. The function returns the information in a FAX_DEVICE_STATUS structure.
For more information, see Fax Device Management. For information about the status information a fax service provider supplies for an active fax operation, see the FAX_DEV_STATUS topic.
Windows NT/2000: Requires Windows 2000.
Windows 95/98: Requires Windows 95 or later. Available as a redistributable with BackOffice Small Business Server.
Header: Declared in Winfax.h.
Unicode: Declared as Unicode and ANSI structures.
Fax Service Client Application Programming Interface Overview, Fax Service Client API Structures, FaxGetDeviceStatus, FILETIME