Table of Contents Index NMS Glossary Previous Page Next Page (Page 1 of 15 in this chapter) Version


Chapter 8

NaturalFax for TAPI Function Reference


8.1 Introduction
8.2 Function Summary
8.2.1 Fax Device Functions
8.2.2 Fax Operational Functions
8.3 Function Reference
faxAnswerFaxPoll 97
faxClose 100
faxCreateQueue 101
faxDestroyQueue 102
faxEnqueueDoc 103
faxGetDocStatus 105
faxGetID 107
faxGetMessage 108
faxGetSessionStatus 110
faxOpen 112
faxReceiveFax 113
faxResetQueue 116
faxSendFax 117
faxStopSession 122

8.1 IntroductionTop of Page

This chapter provides a summary and a comprehensive description of each NaturalFax for TAPI function. Functions are listed in alphabetical order.

8.2 Function SummaryTop of Page

NaturalFax for TAPI provides functions to:

This section groups NaturalFax for TAPI functions by the type of tasks they perform. The functions are grouped by:

8.2.1 Fax Device FunctionsTop of Page

These functions manage the TAPI fax device. They manage opening and closing the device, plus event handling. A special handle type HFAX is defined to refer to an open fax device. These functions assume that a connection is established.
Function

S/A1

Description

faxGetID

S

Returns the fax device ID.

faxOpen

S

Opens the specified fax device.

faxGetMessage

S

Gets a message from the fax device.

faxClose

S

Closes the fax device.

1 Synchronous or Asynchronous

8.2.2 Fax Operational FunctionsTop of Page

This sections lists NaturalFax for TAPI functions that manage sending and receiving faxes. They assume that a TAPI fax device is open.

These functions work similarly to their counterparts for NaturalFax. The major difference is that the NaturalFax functions use a Natural Access context handle, and the NaturalFax for TAPI functions use the HFAX handle.
Function

S/A1

Description

faxAnswerFaxPoll

A

Sends a fax in response to a poll.

faxCreateQueue

S

Creates a queue for fax documents.

faxDestroyQueue

S

Destroys a previously created queue.

faxEnqueueDoc

S

Queues a fax document.

faxGetDocStatus

S

Returns the status of document in a queue.

faxGetSessionStatus

S

Returns the status of a fax operation.

faxReceiveFax

A

Receives a fax and puts documents in a queue.

faxResetQueue

S

Resets documents in a queue to unsent.

faxSendFax

A

Sends all the documents in a queue.

faxStopSession

A

Stops an active fax session.

1 Synchronous or Asynchronous

8.3 Function ReferenceTop of Page

This section provides a comprehensive, alphabetically-ordered reference to the NaturalFax for TAPI functions. A prototype of each function is shown with the function description and details of all arguments and return values. A typical function description includes:

Prototype

The prototype is shown followed by a listing of the function's arguments. Natural MicroSystems data types include:

WORD

DWORD

INT16

INT32

BYTE

16-bit unsigned

32-bit unsigned

16-bit signed

32-bit signed

8-bit unsigned

If a function argument is a data structure, the complete data structure is defined.

Return Values

The return value for a function is either SUCCESS or an error code. For asynchronous functions, a return value of SUCCESS indicates the function was initiated. Subsequent events indicate the status of the operation.

Errors and messages are returned by Windows, TAPI, and NaturalFax for TAPI.

Events

If events are listed, the function is asynchronous and is complete when the DONE event is returned. If there are no events listed, the function is synchronous.

Additional information such as reason codes and return values may be provided in the value field of the event.

Events are returned by NaturalFax for TAPI.



Table of Contents Index NMS Glossary Previous Page Next Page (Page 1 of 15 in this chapter) Version


Want to send us feedback on our documentation? Email: Tech_Pubs@nmss.com
Copyright © 2001, Natural MicroSystems, Inc. All rights reserved.