home *** CD-ROM | disk | FTP | other *** search
/ PC Format (South-Africa) 2001 June / PCFJune.iso / Xenon / C++ / FreeCommandLineTools.exe / Include / xcmcext.h < prev    next >
Encoding:
C/C++ Source or Header  |  2000-01-31  |  2.7 KB  |  99 lines

  1. /*
  2.  *  XCMCEXT.H
  3.  *  
  4.  *  Purpose:
  5.  *  Specifies constants and data structures for CMC Common extensions
  6.  *  
  7.  */
  8.  
  9. #ifndef _XCMCEXT_H
  10. #pragma option push -b -a8 -pc -A- /*P_O_Push*/
  11. #define _XCMCEXT_H
  12.  
  13. #ifdef __cplusplus
  14. extern "C" {
  15. #endif
  16.  
  17. /* COMMON EXTENSIONS DECLARATIONS */
  18.  
  19. #define CMC_XS_COM                  ((CMC_uint32) 0)
  20.  
  21. /* FUNCTION EXTENSIONS */
  22.  
  23. /* Query for extension support in implementation */
  24. #define CMC_X_COM_SUPPORT_EXT       ((CMC_uint32) 16)
  25.  
  26. typedef struct {
  27.     CMC_uint32  item_code;
  28.     CMC_flags   flags;
  29. } CMC_X_COM_support;
  30.  
  31. #define CMC_X_COM_SUPPORTED             ((CMC_flags) 1)
  32. #define CMC_X_COM_NOT_SUPPORTED         ((CMC_flags) 2)
  33. #define CMC_X_COM_DATA_EXT_SUPPORTED    ((CMC_flags) 4)
  34. #define CMC_X_COM_FUNC_EXT_SUPPORTED    ((CMC_flags) 8)
  35. #define CMC_X_COM_SUP_EXCLUDE           ((CMC_flags) 16)
  36.  
  37. /* Get back a structure with configuration data */
  38.  
  39. #define CMC_X_COM_CONFIG_DATA       ((CMC_uint32) 17)
  40.  
  41. typedef struct {
  42.     CMC_uint16              ver_spec;
  43.     CMC_uint16              ver_implem;
  44.     CMC_object_identifier FAR *character_set;
  45.     CMC_enum                line_term;
  46.     CMC_string              default_service;
  47.     CMC_string              default_user;
  48.     CMC_enum                req_password;
  49.     CMC_enum                req_service;
  50.     CMC_enum                req_user;
  51.     CMC_boolean             ui_avail;
  52.     CMC_boolean             sup_nomkmsgread;
  53.     CMC_boolean             sup_counted_str;
  54. } CMC_X_COM_configuration;
  55.  
  56.  
  57. /* Check to see if/when a recipient can be sent */
  58. #define CMC_X_COM_CAN_SEND_RECIP    ((CMC_uint32) 18)
  59.  
  60. #define CMC_X_COM_READY             ((CMC_enum) 0)
  61. #define CMC_X_COM_NOT_READY         ((CMC_enum) 1)
  62. #define CMC_X_COM_DEFER             ((CMC_enum) 2)
  63.  
  64. /* Save a message to the inbox */
  65.  
  66. #define CMC_X_COM_SAVE_MESSAGE      ((CMC_uint32) 19)
  67.  
  68. /* Get back a message structure for the message just sent */
  69.  
  70. #define CMC_X_COM_SENT_MESSAGE      ((CMC_uint32) 20)
  71.  
  72. /* DATA EXTENSIONS */
  73.  
  74. /* attach a receive date to message and message summary structures */
  75. #define CMC_X_COM_TIME_RECEIVED     ((CMC_uint32) 128)
  76.  
  77. /* attach a unique id to resolved recipient structures */
  78. #define CMC_X_COM_RECIP_ID          ((CMC_uint32) 129)
  79.  
  80. /* set character position in the message text to display an icon
  81.    associated with a particular attachment */
  82.  
  83. #define CMC_X_COM_ATTACH_CHARPOS    ((CMC_uint32) 130)
  84.  
  85. #define CMC_X_COM_PRIORITY          ((CMC_uint32) 131)
  86.  
  87. #define CMC_X_COM_NORMAL            ((CMC_enum) 0)
  88. #define CMC_X_COM_URGENT            ((CMC_enum) 1)
  89. #define CMC_X_COM_LOW               ((CMC_enum) 2)
  90.  
  91. #ifdef __cplusplus
  92. }       /* extern "C" */
  93. #endif
  94.  
  95. #pragma option pop /*P_O_Pop*/
  96. #endif  /* _XCMCEXT_H */
  97.  
  98.  
  99.