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