home *** CD-ROM | disk | FTP | other *** search
/ Magazyn Internet 2000 May / MICD_2000_05.iso / CBuilder5 / INSTALL / DATA1.CAB / Program_Built_Files / Include / wabnot.h < prev    next >
C/C++ Source or Header  |  2000-02-01  |  2KB  |  98 lines

  1. #pragma option push -b -a8 -pc -A- /*P_O_Push*/
  2. /*
  3.  *    WABNOT.H
  4.  *
  5.  * Defines Notification structures.  These are also defined in mapispi.h.
  6.  *
  7.  * Copyright 1986-1998 Microsoft Corporation. All Rights Reserved.
  8.  */
  9.  
  10. #if !defined(MAPISPI_H) && !defined(WABSPI_H)
  11. #define WABSPI_H
  12. /* Include common MAPI header files if they haven't been already. */
  13.  
  14.  
  15. #ifndef BEGIN_INTERFACE
  16. #define BEGIN_INTERFACE
  17. #endif
  18.  
  19. #ifdef __cplusplus
  20. extern "C" {
  21. #endif
  22.  
  23. /* Notification key structure for the MAPI notification engine */
  24.  
  25. typedef struct
  26. {
  27.     ULONG        cb;                /* How big the key is */
  28.     BYTE        ab[MAPI_DIM];    /* Key contents */
  29. } NOTIFKEY, FAR * LPNOTIFKEY;
  30.  
  31. #define CbNewNOTIFKEY(_cb)        (offsetof(NOTIFKEY,ab) + (_cb))
  32. #define CbNOTIFKEY(_lpkey)        (offsetof(NOTIFKEY,ab) + (_lpkey)->cb)
  33. #define SizedNOTIFKEY(_cb, _name) \
  34.     struct _NOTIFKEY_ ## _name \
  35. { \
  36.     ULONG        cb; \
  37.     BYTE        ab[_cb]; \
  38. } _name
  39.  
  40.  
  41. /* For Subscribe() */
  42.  
  43. #define NOTIFY_SYNC                ((ULONG) 0x40000000)
  44.  
  45. /* For Notify() */
  46.  
  47. #define NOTIFY_CANCELED            ((ULONG) 0x80000000)
  48.  
  49.  
  50. /* From the Notification Callback function (well, this is really a ulResult) */
  51.  
  52. #define CALLBACK_DISCONTINUE    ((ULONG) 0x80000000)
  53.  
  54. /* For Transport's SpoolerNotify() */
  55.  
  56. #define NOTIFY_NEWMAIL            ((ULONG) 0x00000001)
  57. #define NOTIFY_READYTOSEND        ((ULONG) 0x00000002)
  58. #define NOTIFY_SENTDEFERRED        ((ULONG) 0x00000004)
  59. #define NOTIFY_CRITSEC            ((ULONG) 0x00001000)
  60. #define NOTIFY_NONCRIT            ((ULONG) 0x00002000)
  61. #define NOTIFY_CONFIG_CHANGE    ((ULONG) 0x00004000)
  62. #define NOTIFY_CRITICAL_ERROR    ((ULONG) 0x10000000)
  63.  
  64. /* For Message Store's SpoolerNotify() */
  65.  
  66. #define NOTIFY_NEWMAIL_RECEIVED    ((ULONG) 0x20000000)
  67.  
  68. /* For ModifyStatusRow() */
  69.  
  70. #define    STATUSROW_UPDATE        ((ULONG) 0x10000000)
  71.  
  72. /* For IStorageFromStream() */
  73.  
  74. #define STGSTRM_RESET            ((ULONG) 0x00000000)
  75. #define STGSTRM_CURRENT            ((ULONG) 0x10000000)
  76. #define STGSTRM_MODIFY            ((ULONG) 0x00000002)
  77. #define STGSTRM_CREATE            ((ULONG) 0x00001000)
  78.  
  79. /* For GetOneOffTable() */
  80. /****** MAPI_UNICODE            ((ULONG) 0x80000000) */
  81.  
  82. /* For CreateOneOff() */
  83. /****** MAPI_UNICODE            ((ULONG) 0x80000000) */
  84. /****** MAPI_SEND_NO_RICH_INFO    ((ULONG) 0x00010000) */
  85.  
  86. /* For ReadReceipt() */
  87. #define MAPI_NON_READ            ((ULONG) 0x00000001)
  88.  
  89. /* For DoConfigPropSheet() */
  90. /****** MAPI_UNICODE            ((ULONG) 0x80000000) */
  91.  
  92. #ifdef __cplusplus
  93. }
  94. #endif
  95.  
  96. #endif /* MAPISPI_H */
  97. #pragma option pop /*P_O_Pop*/
  98.