Leaked source code of windows server 2003
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

95 lines
2.3 KiB

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