home *** CD-ROM | disk | FTP | other *** search
- /***************************** SENDFAX.H ***********************************/
-
- /******************/
- /** USER WARNING **/
- /******************/
- /*
- SendFax.dll needs the PopComII Toolkit in order to work.
- Before calling the SendFax function you must ensure that
- the Communication Application (CA) is running under
- Windows. (You have to launch it before with CAT611L.EXE).
-
- SendFax is designed for sending a T.611 call to the
- CA provided by the PopCom II Toolkit by asking the CA to
- prepare a fax transmission.
-
- If you do not have the complete T.611 PopComII Toolkit,
- please contact us.
-
- First TΘlΘcom
- 7, Rue Letellier
- 75015 PARIS
- FRANCE
-
- Tel : +33.1.45.78.22.22 FAX : +33.1.45.78.27.62
- */
-
- /************************************************************/
- /** AVAILABLE FILES FORMATS, ONLY MONOCHROME IS SUPPORTED **/
- /***********************************************************/
- #define ASCII_FMT 2
- #define TIFF_FMT 5
- #define T4_FMT 7
- #define DCX_FMT 8
- #define PCX_FMT 9
- #define BMP_FMT 10
-
- /*************************/
- /** FILE LIST STRUCTURE **/
- /*************************/
- typedef struct _FAXLIST {
- char Filename [129]; /* Full Path name including
- drive letter */
- int Format; /* Chosen among privious
- defines */
- BOOL Resolution; /* TRUE for High Resolution */
- HANDLE hNext; /* Handle of the next allocated
- FAXLIST structure */
- } FAXLIST, FAR *LPFAXLIST;
-
- /****************************/
- /** DIGITAL DATE STRUCTURE **/
- /****************************/
- typedef struct _FAXDATE {
- char Year[2]; /* YY */
- char Fill1; /* - */
- char Month[2]; /* MM */
- char Fill2; /* - */
- char Day[2]; /* DD */
- char Fill3; /* - */
- char Hour[2]; /* HH */
- char Fill4; /* : */
- char Minutes[2]; /* MM */
- char Fill5; /* \0 */
- } FAXDATE, FAR *LPFAXDATE;
-
- /****************/
- /** DATE UNION **/
- /****************/
- typedef union _DATETYPE {
- char DateString[10]; /* May be IMMEDIATE */
- FAXDATE DateDay;
- } DATETYPE, FAR *LPDATETYPE;
-
- /**********************************/
- /** PHONE NUMBERS LIST STRUCTURE **/
- /**********************************/
- typedef struct _PHONELIST {
- char PhoneNumber[21]; /* Can contain ',' */
- HANDLE hNext; /* Handle of the next
- allocated Phone
- structure */
- } PHONELIST, FAR *LPPHONELIST;
-
- /**********************************************/
- /** ERROR CODES PROVIDES BY SendFax FUNCTION **/
- /**********************************************/
- typedef enum _SENDERRORCODE {
- SEND_FAX_CORRECT,
-
- BAD_FAXLIST,
- BAD_DATE,
- BAD_PHONELIST,
-
- CA_T611_NOT_FOUND,
- CA_T611_ACCESS_ERROR,
-
- FORMAT_NOT_SUPPORTED,
- FILE_ERROR,
- MEMORY_ERROR,
- NETWORK_ERROR,
- UNKNOWN_ERROR,
- } SENDERRORCODE;
-
- /***********************/
- /** MAIN DLL FUNCTION **/
- /***********************/
- SENDERRORCODE FAR PASCAL SendFax ( LPFAXLIST lpFaxList,
- LPDATETYPE lpDate,
- LPPHONELIST lpAddress);
-
-