ConnectPortHandleExt

#include ”faxcpp.h”

PORTFAX far ConnectPortHandleExt(              LPSTR          PortName,
HANDLE hDevice,
LPSTR     FaxName,
LPSTR     IniFileName)

Class 1.

Class 2.

Class 2.0

Brooktrout

 

GammaLink

 

Dialogic

 

NMS

 

g

g

 

 

 

 

Description

This function works similarly to ‘ConnectPortHandle’ and can be used to connect to fax hardware.

Parameters

LPSTR   

PortName

Name of a port. (COM1, COM2, Channel1... etc.). For fax channels this parameter should start with Channel’.

HANDLE

hDevice

COM port handle

LPSTR

FaxName

Name of a fax. For COM ports the name of the fax refers to a section in the IniFaxName.INI file.

LPSTR

IniFaxName

Name of the ini file that contains the setting for the fax hardware.

Return Value

Returns fax port on success, otherwise returns zero.

Remarks:

When using a Brooktrout TR1034 card you should set the number of rings to 1 in the Brooktrout Configuration Tool. The card will answer an incoming call after detecting the number of rings specified by the second parameter of SetAutoAnswer function.