home *** CD-ROM | disk | FTP | other *** search
/ IBM CD Showcase / OS2_CD_ROM.iso / smce0001 / faxpm / demo / api0 / FAXAPI.H next >
Encoding:
C/C++ Source or Header  |  1993-11-10  |  3.1 KB  |  82 lines

  1. /* **********************************************************************
  2.    * File: FAXAPI.H                                                     *
  3.    * Version: 1.0                                                       *
  4.    * Date: 1993-01-26                                                   *
  5.    * Author: Vanderstraeten Philippe                                    *
  6.    *                                                                    *
  7.    * (c) Microformatic S.A. 1991 - 1993                                 *
  8.    ********************************************************************** */
  9.  
  10.  
  11. #ifndef INCL_FAXAPI_H
  12. #define INCL_FAXAPI_H
  13.  
  14. /***************************************************************************/
  15. /*                                                                         */
  16. /*                       FAXDRIVERDATA fields length                       */
  17. /*                                                                         */
  18. /***************************************************************************/
  19.  
  20.  
  21. #define LEN_RECIPIENT            64
  22. #define LEN_FAXNAME              128
  23. #define LEN_COMMENT              80
  24. #define LEN_LOGO                 128
  25. #define LEN_FROM                 80
  26. #define LEN_MYFAXNUMBER          80
  27. #define LEN_MYPHONENUMBER        80
  28. #define LEN_CONTENTS             512
  29. #define LEN_COMMENTS             80
  30. #define LEN_TO                   64
  31.  
  32. /***************************************************************************/
  33. /*                                                                         */
  34. /*                       FAXDRIVERDATA constants                           */
  35. /*                                                                         */
  36. /***************************************************************************/
  37.  
  38. /* ulRecipientType */
  39.  
  40. #define DESTINATION_IS_PHONE        0
  41. #define DESTINATION_IS_NAME         1
  42. #define DESTINATION_IS_LIST         2
  43.  
  44. /* ulHold */
  45.  
  46. #define HOLD_FAX                    TRUE
  47.  
  48.  
  49. /***************************************************************************/
  50. /*                       FAXPM.DRV Internal Escape codes                   */
  51. /* ATTENTION: Use DEVESC_QUERYESCSUPPORT to retrieve Escape code support   */
  52. /***************************************************************************/
  53.  
  54. #define DEVESC_FAX_BASE                32768
  55. #define DEVESC_CALL_FAXPHONEBOOK       DEVESC_FAX_BASE + 1
  56. #define DEVESC_CALL_FAXSEND            DEVESC_FAX_BASE + 2
  57. #define DEVESC_CALL_FAXTIME            DEVESC_FAX_BASE + 3
  58. #define DEVESC_CALL_FAXHEADER          DEVESC_FAX_BASE + 4
  59.  
  60. typedef struct _FAXDRIVERDATA
  61. {
  62.    CHAR  szFaxName[LEN_FAXNAME];
  63.    CHAR  szRecipient[LEN_RECIPIENT];
  64.    CHAR  szComment[LEN_COMMENTS];
  65.    CHAR  szLogo[LEN_LOGO];
  66.    CHAR  szFrom[LEN_FROM];
  67.    CHAR  szFax[LEN_MYFAXNUMBER];
  68.    CHAR  szPhone[LEN_MYPHONENUMBER];
  69.    CHAR  szContents[LEN_CONTENTS];
  70.    CHAR  szStartTime[16];
  71.    CHAR  szEndTime[16];
  72.    ULONG ulRecipientType;
  73.    ULONG ulHold;
  74.    ULONG ulDialogRet;
  75.    CHAR szTo[LEN_TO];
  76. } FAXDRIVERDATA;
  77.  
  78. #define FAX    FAXDRIVERDATA
  79.  
  80.  
  81. #endif
  82.