home *** CD-ROM | disk | FTP | other *** search
/ Inter.Net 55-1 / Inter.Net 55-1.iso / CBuilder / Setup / BCB / data.z / xcmcext.h < prev    next >
Encoding:
C/C++ Source or Header  |  1998-02-09  |  2.8 KB  |  105 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. #define _XCMCEXT_H
  11. #pragma option push -b
  12.  
  13. #ifdef __BORLANDC__
  14. #  include <pshpack8.h>
  15. #endif
  16.  
  17. #ifdef __cplusplus
  18. extern "C" {
  19. #endif
  20.  
  21. /* COMMON EXTENSIONS DECLARATIONS */
  22.  
  23. #define CMC_XS_COM                  ((CMC_uint32) 0)
  24.  
  25. /* FUNCTION EXTENSIONS */
  26.  
  27. /* Query for extension support in implementation */
  28. #define CMC_X_COM_SUPPORT_EXT       ((CMC_uint32) 16)
  29.  
  30. typedef struct {
  31.     CMC_uint32  item_code;
  32.     CMC_flags   flags;
  33. } CMC_X_COM_support;
  34.  
  35. #define CMC_X_COM_SUPPORTED             ((CMC_flags) 1)
  36. #define CMC_X_COM_NOT_SUPPORTED         ((CMC_flags) 2)
  37. #define CMC_X_COM_DATA_EXT_SUPPORTED    ((CMC_flags) 4)
  38. #define CMC_X_COM_FUNC_EXT_SUPPORTED    ((CMC_flags) 8)
  39. #define CMC_X_COM_SUP_EXCLUDE           ((CMC_flags) 16)
  40.  
  41. /* Get back a structure with configuration data */
  42.  
  43. #define CMC_X_COM_CONFIG_DATA       ((CMC_uint32) 17)
  44.  
  45. typedef struct {
  46.     CMC_uint16              ver_spec;
  47.     CMC_uint16              ver_implem;
  48.     CMC_object_identifier FAR *character_set;
  49.     CMC_enum                line_term;
  50.     CMC_string              default_service;
  51.     CMC_string              default_user;
  52.     CMC_enum                req_password;
  53.     CMC_enum                req_service;
  54.     CMC_enum                req_user;
  55.     CMC_boolean             ui_avail;
  56.     CMC_boolean             sup_nomkmsgread;
  57.     CMC_boolean             sup_counted_str;
  58. } CMC_X_COM_configuration;
  59.  
  60.  
  61. /* Check to see if/when a recipient can be sent */
  62. #define CMC_X_COM_CAN_SEND_RECIP    ((CMC_uint32) 18)
  63.  
  64. #define CMC_X_COM_READY             ((CMC_enum) 0)
  65. #define CMC_X_COM_NOT_READY         ((CMC_enum) 1)
  66. #define CMC_X_COM_DEFER             ((CMC_enum) 2)
  67.  
  68. /* Save a message to the inbox */
  69.  
  70. #define CMC_X_COM_SAVE_MESSAGE      ((CMC_uint32) 19)
  71.  
  72. /* Get back a message structure for the message just sent */
  73.  
  74. #define CMC_X_COM_SENT_MESSAGE      ((CMC_uint32) 20)
  75.  
  76. /* DATA EXTENSIONS */
  77.  
  78. /* attach a receive date to message and message summary structures */
  79. #define CMC_X_COM_TIME_RECEIVED     ((CMC_uint32) 128)
  80.  
  81. /* attach a unique id to resolved recipient structures */
  82. #define CMC_X_COM_RECIP_ID          ((CMC_uint32) 129)
  83.  
  84. /* set character position in the message text to display an icon
  85.    associated with a particular attachment */
  86.  
  87. #define CMC_X_COM_ATTACH_CHARPOS    ((CMC_uint32) 130)
  88.  
  89. #define CMC_X_COM_PRIORITY          ((CMC_uint32) 131)
  90.  
  91. #define CMC_X_COM_NORMAL            ((CMC_enum) 0)
  92. #define CMC_X_COM_URGENT            ((CMC_enum) 1)
  93. #define CMC_X_COM_LOW               ((CMC_enum) 2)
  94.  
  95. #ifdef __cplusplus
  96. }       /* extern "C" */
  97. #endif
  98.  
  99. #ifdef __BORLANDC__
  100. #  include <poppack.h>
  101. #endif
  102.  
  103. #pragma option pop
  104. #endif  /* _XCMCEXT_H */
  105.