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.

137 lines
4.9 KiB

  1. /* IAddrBook Interface ----------------------------------------------------- */
  2. /* CreateOneOff */
  3. /****** MAPI_UNICODE ((ULONG) 0x80000000) */
  4. /****** MAPI_SEND_NO_RICH_INFO ((ULONG) 0x00010000) */
  5. /* RecipOptions */
  6. /****** MAPI_UNICODE ((ULONG) 0x80000000) */
  7. /* QueryDefaultRecipOpt */
  8. /****** MAPI_UNICODE ((ULONG) 0x80000000) */
  9. /* GetSearchPath */
  10. /****** MAPI_UNICODE ((ULONG) 0x80000000) */
  11. #ifndef WABIAB_H
  12. #define WABIAB_H
  13. // These are WAB only flags for IAdrBook::ResolveName
  14. // MAPI_UNICODE ((ULONG) 0x80000000)
  15. #define WAB_RESOLVE_LOCAL_ONLY ((ULONG) 0x80000000)
  16. #define WAB_RESOLVE_ALL_EMAILS ((ULONG) 0x40000000)
  17. #define WAB_RESOLVE_NO_ONE_OFFS ((ULONG) 0x20000000)
  18. #define WAB_RESOLVE_NEED_CERT ((ULONG) 0x10000000)
  19. #define WAB_RESOLVE_NO_NOT_FOUND_UI ((ULONG) 0x08000000)
  20. #define WAB_RESOLVE_USE_CURRENT_PROFILE ((ULONG) 0x04000000)
  21. #define WAB_RESOLVE_FIRST_MATCH ((ULONG) 0x02000000)
  22. #define WAB_RESOLVE_UNICODE ((ULONG) 0x01000000)
  23. // MAPI_DIALOG ((ULONG) 0x00000008)
  24. #ifndef MAPIX_H
  25. #define MAPI_IADDRBOOK_METHODS(IPURE) \
  26. MAPIMETHOD(OpenEntry) \
  27. (THIS_ ULONG cbEntryID, \
  28. LPENTRYID lpEntryID, \
  29. LPCIID lpInterface, \
  30. ULONG ulFlags, \
  31. ULONG FAR * lpulObjType, \
  32. LPUNKNOWN FAR * lppUnk) IPURE; \
  33. MAPIMETHOD(CompareEntryIDs) \
  34. (THIS_ ULONG cbEntryID1, \
  35. LPENTRYID lpEntryID1, \
  36. ULONG cbEntryID2, \
  37. LPENTRYID lpEntryID2, \
  38. ULONG ulFlags, \
  39. ULONG FAR * lpulResult) IPURE; \
  40. MAPIMETHOD(Advise) \
  41. (THIS_ ULONG cbEntryID, \
  42. LPENTRYID lpEntryID, \
  43. ULONG ulEventMask, \
  44. LPMAPIADVISESINK lpAdviseSink, \
  45. ULONG FAR * lpulConnection) IPURE; \
  46. MAPIMETHOD(Unadvise) \
  47. (THIS_ ULONG ulConnection) IPURE; \
  48. MAPIMETHOD(CreateOneOff) \
  49. (THIS_ LPTSTR lpszName, \
  50. LPTSTR lpszAdrType, \
  51. LPTSTR lpszAddress, \
  52. ULONG ulFlags, \
  53. ULONG FAR * lpcbEntryID, \
  54. LPENTRYID FAR * lppEntryID) IPURE; \
  55. MAPIMETHOD(NewEntry) \
  56. (THIS_ ULONG ulUIParam, \
  57. ULONG ulFlags, \
  58. ULONG cbEIDContainer, \
  59. LPENTRYID lpEIDContainer, \
  60. ULONG cbEIDNewEntryTpl, \
  61. LPENTRYID lpEIDNewEntryTpl, \
  62. ULONG FAR * lpcbEIDNewEntry, \
  63. LPENTRYID FAR * lppEIDNewEntry) IPURE; \
  64. MAPIMETHOD(ResolveName) \
  65. (THIS_ ULONG_PTR ulUIParam, \
  66. ULONG ulFlags, \
  67. LPTSTR lpszNewEntryTitle, \
  68. LPADRLIST lpAdrList) IPURE; \
  69. MAPIMETHOD(Address) \
  70. (THIS_ ULONG FAR * lpulUIParam, \
  71. LPADRPARM lpAdrParms, \
  72. LPADRLIST FAR * lppAdrList) IPURE; \
  73. MAPIMETHOD(Details) \
  74. (THIS_ ULONG FAR * lpulUIParam, \
  75. LPFNDISMISS lpfnDismiss, \
  76. LPVOID lpvDismissContext, \
  77. ULONG cbEntryID, \
  78. LPENTRYID lpEntryID, \
  79. LPFNBUTTON lpfButtonCallback, \
  80. LPVOID lpvButtonContext, \
  81. LPTSTR lpszButtonText, \
  82. ULONG ulFlags) IPURE; \
  83. MAPIMETHOD(RecipOptions) \
  84. (THIS_ ULONG ulUIParam, \
  85. ULONG ulFlags, \
  86. LPADRENTRY lpRecip) IPURE; \
  87. MAPIMETHOD(QueryDefaultRecipOpt) \
  88. (THIS_ LPTSTR lpszAdrType, \
  89. ULONG ulFlags, \
  90. ULONG FAR * lpcValues, \
  91. LPSPropValue FAR * lppOptions) IPURE; \
  92. MAPIMETHOD(GetPAB) \
  93. (THIS_ ULONG FAR * lpcbEntryID, \
  94. LPENTRYID FAR * lppEntryID) IPURE; \
  95. MAPIMETHOD(SetPAB) \
  96. (THIS_ ULONG cbEntryID, \
  97. LPENTRYID lpEntryID) IPURE; \
  98. MAPIMETHOD(GetDefaultDir) \
  99. (THIS_ ULONG FAR * lpcbEntryID, \
  100. LPENTRYID FAR * lppEntryID) IPURE; \
  101. MAPIMETHOD(SetDefaultDir) \
  102. (THIS_ ULONG cbEntryID, \
  103. LPENTRYID lpEntryID) IPURE; \
  104. MAPIMETHOD(GetSearchPath) \
  105. (THIS_ ULONG ulFlags, \
  106. LPSRowSet FAR * lppSearchPath) IPURE; \
  107. MAPIMETHOD(SetSearchPath) \
  108. (THIS_ ULONG ulFlags, \
  109. LPSRowSet lpSearchPath) IPURE; \
  110. MAPIMETHOD(PrepareRecips) \
  111. (THIS_ ULONG ulFlags, \
  112. LPSPropTagArray lpPropTagArray, \
  113. LPADRLIST lpRecipList) IPURE; \
  114. #undef INTERFACE
  115. #define INTERFACE IAddrBook
  116. DECLARE_MAPI_INTERFACE_(IAddrBook, IMAPIProp)
  117. {
  118. BEGIN_INTERFACE
  119. MAPI_IUNKNOWN_METHODS(PURE)
  120. MAPI_IMAPIPROP_METHODS(PURE)
  121. MAPI_IADDRBOOK_METHODS(PURE)
  122. };
  123. DECLARE_MAPI_INTERFACE_PTR(IAddrBook, LPADRBOOK);
  124. #endif // MAPIX_H
  125. #endif // WABIAB_H