mapiguid.h 9.7 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287
  1. /*
  2. * Copyright 2005 - 2016 Zarafa and its licensors
  3. *
  4. * This program is free software: you can redistribute it and/or modify
  5. * it under the terms of the GNU Affero General Public License, version 3,
  6. * as published by the Free Software Foundation.
  7. *
  8. * This program is distributed in the hope that it will be useful,
  9. * but WITHOUT ANY WARRANTY; without even the implied warranty of
  10. * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
  11. * GNU Affero General Public License for more details.
  12. *
  13. * You should have received a copy of the GNU Affero General Public License
  14. * along with this program. If not, see <http://www.gnu.org/licenses/>.
  15. *
  16. */
  17. #ifndef __M4L_MAPIGUID_H_
  18. #ifdef INITGUID /* only when INITGUID? */
  19. #define __M4L_MAPIGUID_H_
  20. #define MAPIGUID_H
  21. #endif
  22. #include <kopano/platform.h>
  23. /* Because they have nowhere else to go ... sad huh? */
  24. #if !defined(INITGUID) || defined(USES_IID_IUnknown)
  25. DEFINE_OLEGUID(IID_IUnknown,0,0,0);
  26. #endif
  27. #if !defined(INITGUID) || defined(USES_IID_IStream)
  28. DEFINE_OLEGUID(IID_IStream,0x0C,0,0);
  29. #endif
  30. #if !defined(INITGUID) || defined(USES_IID_ISequentialStream)
  31. DEFINE_GUID (IID_ISequentialStream, 0x0c733a30, 0x2a1c, 0x11ce, 0xad, 0xe5, 0x00, 0xaa, 0x00, 0x44, 0x77, 0x3d);
  32. #endif
  33. #if !defined(INITGUID) || defined(USES_IID_IStorage)
  34. DEFINE_OLEGUID(IID_IStorage,0x0B,0,0);
  35. #endif
  36. /* Derive from IUnknown */
  37. #if !defined(INITGUID) || defined(USES_IID_IMAPISession)
  38. DEFINE_OLEGUID(IID_IMAPISession, 0x00020300, 0, 0);
  39. #endif
  40. #if !defined(INITGUID) || defined(USES_IID_IMAPITable)
  41. DEFINE_OLEGUID(IID_IMAPITable, 0x00020301, 0, 0);
  42. #endif
  43. #if !defined(INITGUID) || defined(USES_IID_IMAPIAdviseSink)
  44. DEFINE_OLEGUID(IID_IMAPIAdviseSink, 0x00020302, 0, 0);
  45. #endif
  46. #if !defined(INITGUID) || defined(USES_IID_IMAPIControl)
  47. DEFINE_OLEGUID(IID_IMAPIControl, 0x0002031B, 0, 0);
  48. #endif
  49. #if !defined(INITGUID) || defined(USES_IID_IProfAdmin)
  50. DEFINE_OLEGUID(IID_IProfAdmin, 0x0002031C, 0, 0);
  51. #endif
  52. #if !defined(INITGUID) || defined(USES_IID_IMsgServiceAdmin)
  53. DEFINE_OLEGUID(IID_IMsgServiceAdmin,0x0002031D, 0, 0);
  54. #endif
  55. #if !defined(INITGUID) || defined(USES_IID_IProviderAdmin)
  56. DEFINE_OLEGUID(IID_IProviderAdmin, 0x00020325, 0, 0);
  57. #endif
  58. #if !defined(INITGUID) || defined(USES_IID_IMAPIProgress)
  59. DEFINE_OLEGUID(IID_IMAPIProgress, 0x0002031F, 0, 0);
  60. #endif
  61. /* MAPIProp or derive from MAPIProp */
  62. #if !defined(INITGUID) || defined(USES_IID_IMAPIProp)
  63. DEFINE_OLEGUID(IID_IMAPIProp, 0x00020303, 0, 0);
  64. #endif
  65. #if !defined(INITGUID) || defined(USES_IID_IProfSect)
  66. DEFINE_OLEGUID(IID_IProfSect, 0x00020304, 0, 0);
  67. #endif
  68. #if !defined(INITGUID) || defined(USES_IID_IMAPIStatus)
  69. DEFINE_OLEGUID(IID_IMAPIStatus, 0x00020305, 0, 0);
  70. #endif
  71. #if !defined(INITGUID) || defined(USES_IID_IMsgStore)
  72. DEFINE_OLEGUID(IID_IMsgStore, 0x00020306, 0, 0);
  73. #endif
  74. #if !defined(INITGUID) || defined(USES_IID_IMessage)
  75. DEFINE_OLEGUID(IID_IMessage, 0x00020307, 0, 0);
  76. #endif
  77. #if !defined(INITGUID) || defined(USES_IID_IAttachment)
  78. DEFINE_OLEGUID(IID_IAttachment, 0x00020308, 0, 0);
  79. #endif
  80. #if !defined(INITGUID) || defined(USES_IID_IAddrBook)
  81. DEFINE_OLEGUID(IID_IAddrBook, 0x00020309, 0, 0);
  82. #endif
  83. #if !defined(INITGUID) || defined(USES_IID_IMailUser)
  84. DEFINE_OLEGUID(IID_IMailUser, 0x0002030A, 0, 0);
  85. #endif
  86. /* MAPIContainer or derive from MAPIContainer */
  87. #if !defined(INITGUID) || defined(USES_IID_IMAPIContainer)
  88. DEFINE_OLEGUID(IID_IMAPIContainer, 0x0002030B, 0, 0);
  89. #endif
  90. #if !defined(INITGUID) || defined(USES_IID_IMAPIFolder)
  91. DEFINE_OLEGUID(IID_IMAPIFolder, 0x0002030C, 0, 0);
  92. #endif
  93. #if !defined(INITGUID) || defined(USES_IID_IABContainer)
  94. DEFINE_OLEGUID(IID_IABContainer, 0x0002030D, 0, 0);
  95. #endif
  96. #if !defined(INITGUID) || defined(USES_IID_IDistList)
  97. DEFINE_OLEGUID(IID_IDistList, 0x0002030E, 0, 0);
  98. #endif
  99. /* MAPI Support Object */
  100. #if !defined(INITGUID) || defined(USES_IID_IMAPISup)
  101. DEFINE_OLEGUID(IID_IMAPISup, 0x0002030F, 0, 0);
  102. #endif
  103. /* Provider INIT objects */
  104. #if !defined(INITGUID) || defined(USES_IID_IMSProvider)
  105. DEFINE_OLEGUID(IID_IMSProvider, 0x00020310, 0, 0);
  106. #endif
  107. #if !defined(INITGUID) || defined(USES_IID_IABProvider)
  108. DEFINE_OLEGUID(IID_IABProvider, 0x00020311, 0, 0);
  109. #endif
  110. #if !defined(INITGUID) || defined(USES_IID_IXPProvider)
  111. DEFINE_OLEGUID(IID_IXPProvider, 0x00020312, 0, 0);
  112. #endif
  113. /* Provider LOGON Objects */
  114. #if !defined(INITGUID) || defined(USES_IID_IMSLogon)
  115. DEFINE_OLEGUID(IID_IMSLogon, 0x00020313, 0, 0);
  116. #endif
  117. #if !defined(INITGUID) || defined(USES_IID_IABLogon)
  118. DEFINE_OLEGUID(IID_IABLogon, 0x00020314, 0, 0);
  119. #endif
  120. #if !defined(INITGUID) || defined(USES_IID_IXPLogon)
  121. DEFINE_OLEGUID(IID_IXPLogon, 0x00020315, 0, 0);
  122. #endif
  123. /* IMAPITable-in-memory Table Data Object */
  124. #if !defined(INITGUID) || defined(USES_IID_IMAPITableData)
  125. DEFINE_OLEGUID(IID_IMAPITableData, 0x00020316, 0, 0);
  126. #endif
  127. /* MAPI Spooler Init Object (internal) */
  128. #if !defined(INITGUID) || defined(USES_IID_IMAPISpoolerInit)
  129. DEFINE_OLEGUID(IID_IMAPISpoolerInit, 0x00020317, 0, 0);
  130. #endif
  131. /* MAPI Spooler Session Object (internal) */
  132. #if !defined(INITGUID) || defined(USES_IID_IMAPISpoolerSession)
  133. DEFINE_OLEGUID(IID_IMAPISpoolerSession, 0x00020318, 0, 0);
  134. #endif
  135. /* MAPI TNEF Object Interface */
  136. #if !defined(INITGUID) || defined(USES_IID_ITNEF)
  137. DEFINE_OLEGUID(IID_ITNEF, 0x00020319, 0, 0);
  138. #endif
  139. /* IMAPIProp-in-memory Property Data Object */
  140. #if !defined(INITGUID) || defined(USES_IID_IMAPIPropData)
  141. DEFINE_OLEGUID(IID_IMAPIPropData, 0x0002031A, 0, 0);
  142. #endif
  143. /* MAPI Spooler Hook Object */
  144. #if !defined(INITGUID) || defined(USES_IID_ISpoolerHook)
  145. DEFINE_OLEGUID(IID_ISpoolerHook, 0x00020320, 0, 0);
  146. #endif
  147. /* MAPI Spooler Service Object */
  148. #if !defined(INITGUID) || defined(USES_IID_IMAPISpoolerService)
  149. DEFINE_OLEGUID(IID_IMAPISpoolerService, 0x0002031E, 0, 0);
  150. #endif
  151. /* MAPI forms, form manager, etc. */
  152. #if !defined(INITGUID) || defined(USES_IID_IMAPIViewContext)
  153. DEFINE_OLEGUID(IID_IMAPIViewContext, 0x00020321, 0, 0);
  154. #endif
  155. #if !defined(INITGUID) || defined(USES_IID_IMAPIFormMgr)
  156. DEFINE_OLEGUID(IID_IMAPIFormMgr, 0x00020322, 0, 0);
  157. #endif
  158. #if !defined(INITGUID) || defined(USES_IID_IEnumMAPIFormProp)
  159. DEFINE_OLEGUID(IID_IEnumMAPIFormProp, 0x00020323, 0, 0);
  160. #endif
  161. #if !defined(INITGUID) || defined(USES_IID_IMAPIFormInfo)
  162. DEFINE_OLEGUID(IID_IMAPIFormInfo, 0x00020324, 0, 0);
  163. #endif
  164. #if !defined(INITGUID) || defined(USES_IID_IMAPIForm)
  165. DEFINE_OLEGUID(IID_IMAPIForm, 0x00020327, 0, 0);
  166. #endif
  167. /* Well known guids for name<->id mappings */
  168. /* The name of MAPI's property set */
  169. #if !defined(INITGUID) || defined(USES_PS_MAPI)
  170. DEFINE_OLEGUID(PS_MAPI, 0x00020328, 0, 0);
  171. #endif
  172. /* The name of the set of public strings */
  173. #if !defined(INITGUID) || defined(USES_PS_PUBLIC_STRINGS)
  174. DEFINE_OLEGUID(PS_PUBLIC_STRINGS, 0x00020329, 0, 0);
  175. #endif
  176. /* MAPI forms, form manager, (cont) */
  177. #if !defined(INITGUID) || defined(USES_IID_IPersistMessage)
  178. DEFINE_OLEGUID(IID_IPersistMessage, 0x0002032A, 0, 0);
  179. #endif
  180. /* IMAPIViewAdviseSink */
  181. #if !defined(INITGUID) || defined(USES_IID_IMAPIViewAdviseSink)
  182. DEFINE_OLEGUID(IID_IMAPIViewAdviseSink, 0x0002032B, 0, 0);
  183. #endif
  184. /* Message Store OpenProperty */
  185. #if !defined(INITGUID) || defined(USES_IID_IStreamDocfile)
  186. DEFINE_OLEGUID(IID_IStreamDocfile, 0x0002032C, 0, 0);
  187. #endif
  188. /* IMAPIFormProp */
  189. #if !defined(INITGUID) || defined(USES_IID_IMAPIFormProp)
  190. DEFINE_OLEGUID(IID_IMAPIFormProp, 0x0002032D, 0, 0);
  191. #endif
  192. /* IMAPIFormContainer */
  193. #if !defined(INITGUID) || defined(USES_IID_IMAPIFormContainer)
  194. DEFINE_OLEGUID(IID_IMAPIFormContainer, 0x0002032E, 0, 0);
  195. #endif
  196. /* IMAPIFormAdviseSink */
  197. #if !defined(INITGUID) || defined(USES_IID_IMAPIFormAdviseSink)
  198. DEFINE_OLEGUID(IID_IMAPIFormAdviseSink, 0x0002032F, 0, 0);
  199. #endif
  200. /* TNEF OpenProperty */
  201. #if !defined(INITGUID) || defined(USES_IID_IStreamTnef)
  202. DEFINE_OLEGUID(IID_IStreamTnef, 0x00020330, 0, 0);
  203. #endif
  204. /* IMAPIFormFactory */
  205. #if !defined(INITGUID) || defined(USES_IID_IMAPIFormFactory)
  206. DEFINE_OLEGUID(IID_IMAPIFormFactory, 0x00020350, 0, 0);
  207. #endif
  208. /* IMAPIMessageSite */
  209. #if !defined(INITGUID) || defined(USES_IID_IMAPIMessageSite)
  210. DEFINE_OLEGUID(IID_IMAPIMessageSite, 0x00020370, 0, 0);
  211. #endif
  212. /* Well known guids routing property sets.
  213. Useful when writing applications that route documents
  214. (i.e. Workflow) across gateways. Gateways that speak MAPI
  215. should convert the properties found in the follow property
  216. sets appropriately. */
  217. /* PS_ROUTING_EMAIL_ADDRESSES: Addresses that need converting at gateways, etc. */
  218. #if !defined(INITGUID) || defined(USES_PS_ROUTING_EMAIL_ADDRESSES)
  219. DEFINE_OLEGUID(PS_ROUTING_EMAIL_ADDRESSES, 0x00020380, 0, 0);
  220. #endif
  221. /* PS_ROUTING_ADDRTYPE: Address types that need converting at gateways, etc. */
  222. #if !defined(INITGUID) || defined(USES_PS_ROUTING_ADDRTYPE)
  223. DEFINE_OLEGUID(PS_ROUTING_ADDRTYPE, 0x00020381, 0, 0);
  224. #endif
  225. /* PS_ROUTING_DISPLAY_NAME: Display Name that corresponds to the other props */
  226. #if !defined(INITGUID) || defined(USES_PS_ROUTING_DISPLAY_NAME)
  227. DEFINE_OLEGUID(PS_ROUTING_DISPLAY_NAME, 0x00020382, 0, 0);
  228. #endif
  229. /* PS_ROUTING_ENTRYID: (optional) EntryIDs that need converting at gateways, etc. */
  230. #if !defined(INITGUID) || defined(USES_PS_ROUTING_ENTRYID)
  231. DEFINE_OLEGUID(PS_ROUTING_ENTRYID, 0x00020383, 0, 0);
  232. #endif
  233. /* PS_ROUTING_SEARCH_KEY: (optional) search keys that need converting at gateways, etc. */
  234. #if !defined(INITGUID) || defined(USES_PS_ROUTING_SEARCH_KEY)
  235. DEFINE_OLEGUID(PS_ROUTING_SEARCH_KEY, 0x00020384, 0, 0);
  236. #endif
  237. /* MUID_PROFILE_INSTANCE
  238. Well known section in a profile which contains a property (PR_SEARCH_KEY) which is unique
  239. for any given profile. Applications and providers can depend on this value as being
  240. different for each unique profile. */
  241. #if !defined(INITGUID) || defined(USES_MUID_PROFILE_INSTANCE)
  242. DEFINE_OLEGUID(MUID_PROFILE_INSTANCE, 0x00020385, 0, 0);
  243. #endif
  244. #endif /* MAPIGUID_H */