This sample demonstrates sending a fax message and tracking the progress
of the fax until it is completed. The message
handle returned from a successful call to SEND_MESSAGE
can be
used by an application to poll the fax server to track the progress of a message as it converted,
delivered, and ultimately moved into the sent
queue. This sample submits a fax message, then polls the fax server using
the GET_Q_ENTRIES_INFO
function with the SPECIFIED_MESSAGE_HANDLE
tag set to retrieve information for the new message. The latest MESSAGE_STATUS
and CONNECTION_SECONDS for the message are displayed after each update,
and after a 5 second delay the process is repeated until the message is
completed. When completed, the MESSAGE_COMPLETION_CODE
is displayed and the fax is deleted from the server.
|