FaxMan SDK Version 4.7
FAXDEVICE Structure

FAXDEVICE Structure

 

 

typedef struct tagDevice {

 int nPort;

 SHORT nQueue;

 WORD wFlags;

 char szInit;

 char szReset;

int nMaxSpeed;       // -1 if default to modem speed

} FAXDEVICE, FAR *PFAXDEVICE;

 

nPort is the comm port the faxmodem is installed on.

nQueue is the queue to which this modem belongs.

wFlags is a set of flags which give the current status of the faxmodem.

 

wFlags is composed by combining the following flags:

 

PORT_SEND

Set if this port is available to send faxes.

 

PORT_RX

Set if this port is available to receive faxes.

 

PORT_SENDING

Set if this port is currently sending a fax.

 

PORT_RECEIVING

Set if this port is currently receiving a fax.

 

PORT_CLS1, PORT_CLS2, PORT_CLS20, PORT_CLS10, PORT_CLS21

These flags are set if the faxmodem is of the specified type (i.e., Class 1, Class 1.0, Class 2, Class 2. or Class 2.1)

 

PORT_BLOCKED

This flag is set if the port is unusable for some reason. The faxmodem may be turned off, or there may be a problem with the hardware.

 

PORT_BUSY = (PORT_SENDING | PORT_RECEIVING)

Use this flag to indicate if a port is currently active.

 

szInit is the string that is used to initialize the port for sending. This string has a maximum length of 128 characters including the terminating \0.

 

szReset is the string that is used to reset the device. This sting has a maximum length of 128 characters including the terminating \0.

 

nMaxSpeed is the maximum speed that the port will use when receiving or sending. Generally you would set this to -1, allowing FaxMan to automatically select the highest speed possible. Use this only when line noise or modem issues require a lower speed to be used.

Acceptable values include 12000 | 9600 | 7200 | 4800

 

 

 


© 2013 Data Techniques, Inc. All Rights Reserved.

Send comments on this topic.