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