PortCapabilities

#include ”faxcpp.h”

int far PortCapabilities(PORTFAX Port,  TEFaxCapability Cap)

Class 1.

Class 2.

Class 2.0

Brooktrout

 

GammaLink

 

Dialogic

 

NMS

 

g

g

 

 

 

 

Description

Returns the device-specific information about the fax equipment. Cap parameter specifies the type of the information to be returned. It can be one of the following indexes:

FDC_SETCOMPRESS      Compression type the driver can handle and pass it on in the HDLC frame. The returned value is a TECompression data type.

FDC_ONLINECOMPRESS         Compression type the device can handle one line. The returned value is a TECompression data type. Not utilized in this release.

FDC_ECM                            If the returned value is TRUE, then the other side can handle Error Correction Mode. The returned value data type is BOOL.

FDC_BINARY                      Supports binary transmission or not. The returned value data type is BOOL.

FDC_WIDTH                        Width of the paper supported. The returned value data type is TEPageWidth.

FDC_LENGTH                    Length of the paper supported. The returned value data type is TEPageLength.

FDC_BAUD_SEND            Communication baud rate supported for sending data. The returned value data type is TEBaudRate.

FDC_BAUD_REC               Communication baud rate supported for receiving data. The returned value data type is TEBaudRate.

FDC_NONSTDFRAME      Supported non standard framing. The returned value data type is BOOL.

FDC_BITORDER                The bit order the fax supports. The returned value data type is TEBitOrder.

FDC_FAXPOLLING            The caller can receive or the caller can send faxes. The returned value data type is BOOL.

FDC_RESOLUTION           Supported resolution. The returned value data type is TEResolution.

FDC_GET_DTMF               The fax port can detect DTMF tones in receiving mode. The nData parameter data type is BOOL. Works only with Brooktrout fax cards. Use the Voice C++/ActiveX to receive DTMF digits with modems.

FDC_G5                                If the nData parameter is either G5_ENABLE or G5_DISABLE the modem can handle binary transmission or not. The nData parameter data type is enum.

FDC_SEND_PAGE_DATA         Accessing the received page data real time. Can be set for Class1, Class1.0, Class2, Class2.0 modems.

 

Parameters

FAXPORT

Port

Fax port object.

TEFaxCapability

Cap

Type of capability interested in.

Return Value

Returns -1 on error, otherwise returns a non negative number.

Sample Code

None at present.