home *** CD-ROM | disk | FTP | other *** search
/ Monster Media 1994 #1 / monster.zip / monster / MODEM / POPCOMII.ZIP / SENDFAX.H_ / SENDFAX.H
Text File  |  1994-01-17  |  5KB  |  111 lines

  1. /***************************** SENDFAX.H ***********************************/
  2.  
  3.                          /******************/
  4.                          /** USER WARNING **/
  5.                          /******************/
  6. /*
  7.          SendFax.dll needs the PopComII Toolkit in order to work.
  8.          Before calling the SendFax function you must ensure that
  9.          the Communication Application (CA) is running under
  10.          Windows. (You have to launch it before with CAT611L.EXE).
  11.  
  12.          SendFax is designed for sending a T.611 call to the
  13.          CA provided by the PopCom II Toolkit by asking the CA to
  14.          prepare a fax transmission.
  15.  
  16.          If you do not have the complete T.611 PopComII Toolkit,
  17.          please contact us.
  18.  
  19.                               First TΘlΘcom
  20.                               7, Rue Letellier
  21.                               75015 PARIS
  22.                               FRANCE
  23.  
  24.          Tel : +33.1.45.78.22.22       FAX : +33.1.45.78.27.62
  25. */
  26.  
  27. /************************************************************/
  28. /** AVAILABLE FILES FORMATS, ONLY MONOCHROME IS SUPPORTED **/
  29. /***********************************************************/
  30. #define ASCII_FMT       2
  31. #define TIFF_FMT        5
  32. #define T4_FMT          7
  33. #define DCX_FMT         8
  34. #define PCX_FMT         9
  35. #define BMP_FMT         10
  36.  
  37. /*************************/
  38. /** FILE LIST STRUCTURE **/
  39. /*************************/
  40. typedef struct _FAXLIST {
  41.                          char   Filename [129]; /* Full Path name including
  42.                                                    drive letter */
  43.                          int    Format;         /* Chosen among privious
  44.                                                    defines */
  45.                          BOOL   Resolution;     /* TRUE for High Resolution */
  46.                          HANDLE hNext;          /* Handle of the next allocated
  47.                                                    FAXLIST structure */
  48.                         } FAXLIST, FAR *LPFAXLIST;
  49.  
  50. /****************************/
  51. /** DIGITAL DATE STRUCTURE **/
  52. /****************************/
  53. typedef struct _FAXDATE {
  54.                          char   Year[2];           /* YY */
  55.                          char   Fill1;             /* -  */
  56.                          char   Month[2];          /* MM */
  57.                          char   Fill2;             /* -  */
  58.                          char   Day[2];            /* DD */
  59.                          char   Fill3;             /* -  */
  60.                          char   Hour[2];           /* HH */
  61.                          char   Fill4;             /* :  */
  62.                          char   Minutes[2];        /* MM */
  63.                          char   Fill5;             /* \0 */
  64.                         } FAXDATE, FAR *LPFAXDATE;
  65.  
  66. /****************/
  67. /** DATE UNION **/
  68. /****************/
  69. typedef union _DATETYPE {
  70.                          char    DateString[10]; /* May be IMMEDIATE */
  71.                          FAXDATE DateDay;
  72.                         } DATETYPE, FAR *LPDATETYPE;
  73.  
  74. /**********************************/
  75. /** PHONE NUMBERS LIST STRUCTURE **/
  76. /**********************************/
  77. typedef struct _PHONELIST {
  78.                            char    PhoneNumber[21]; /* Can contain ',' */
  79.                            HANDLE  hNext;           /* Handle of the next
  80.                                                        allocated Phone
  81.                                                        structure */
  82.                           } PHONELIST, FAR *LPPHONELIST;
  83.  
  84. /**********************************************/
  85. /** ERROR CODES PROVIDES BY SendFax FUNCTION **/
  86. /**********************************************/
  87. typedef enum _SENDERRORCODE {
  88.                              SEND_FAX_CORRECT,
  89.  
  90.                              BAD_FAXLIST,
  91.                              BAD_DATE,
  92.                              BAD_PHONELIST,
  93.  
  94.                              CA_T611_NOT_FOUND,
  95.                              CA_T611_ACCESS_ERROR,
  96.  
  97.                              FORMAT_NOT_SUPPORTED,
  98.                              FILE_ERROR,
  99.                              MEMORY_ERROR,
  100.                              NETWORK_ERROR,
  101.                              UNKNOWN_ERROR,
  102.                             } SENDERRORCODE;
  103.  
  104. /***********************/
  105. /** MAIN DLL FUNCTION **/
  106. /***********************/
  107. SENDERRORCODE FAR PASCAL SendFax ( LPFAXLIST lpFaxList,
  108.                                    LPDATETYPE lpDate,
  109.                                    LPPHONELIST lpAddress);
  110.  
  111.