ECABContainer.cpp 16 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403
  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. #include <new>
  18. #include <kopano/platform.h>
  19. #include "kcore.hpp"
  20. #include "ECMAPITable.h"
  21. #include "Mem.h"
  22. #include <kopano/ECGuid.h>
  23. #include <kopano/ECDebug.h>
  24. #include <kopano/ECInterfaceDefs.h>
  25. #include <kopano/CommonUtil.h>
  26. #include <kopano/Util.h>
  27. #include "ics.h"
  28. #include <kopano/mapiext.h>
  29. #include <kopano/memory.hpp>
  30. #include "ECABContainer.h"
  31. #include <edkmdb.h>
  32. #include <mapiutil.h>
  33. #include <kopano/charset/convstring.h>
  34. #include <kopano/ECGetText.h>
  35. using namespace KCHL;
  36. ECABContainer::ECABContainer(void *lpProvider, ULONG ulObjType, BOOL fModify,
  37. const char *szClassName) :
  38. ECABProp(lpProvider, ulObjType, fModify, szClassName)
  39. {
  40. this->HrAddPropHandlers(PR_AB_PROVIDER_ID, DefaultABContainerGetProp, DefaultSetPropComputed, (void*) this);
  41. this->HrAddPropHandlers(PR_CONTAINER_FLAGS, DefaultABContainerGetProp, DefaultSetPropComputed, (void*) this);
  42. this->HrAddPropHandlers(PR_DISPLAY_TYPE, DefaultABContainerGetProp, DefaultSetPropComputed, (void*) this);
  43. this->HrAddPropHandlers(PR_EMSMDB_SECTION_UID, DefaultABContainerGetProp, DefaultSetPropComputed, (void*) this);
  44. this->HrAddPropHandlers(PR_ACCOUNT, DefaultABContainerGetProp, DefaultSetPropIgnore, (void*) this);
  45. this->HrAddPropHandlers(PR_NORMALIZED_SUBJECT, DefaultABContainerGetProp, DefaultSetPropIgnore, (void*) this);
  46. this->HrAddPropHandlers(PR_DISPLAY_NAME, DefaultABContainerGetProp, DefaultSetPropIgnore, (void*) this);
  47. this->HrAddPropHandlers(PR_TRANSMITABLE_DISPLAY_NAME, DefaultABContainerGetProp, DefaultSetPropIgnore, (void*) this);
  48. }
  49. ECABContainer::~ECABContainer()
  50. {
  51. if(m_lpImporter)
  52. m_lpImporter->Release();
  53. }
  54. HRESULT ECABContainer::QueryInterface(REFIID refiid, void **lppInterface)
  55. {
  56. REGISTER_INTERFACE2(ECABContainer, this);
  57. REGISTER_INTERFACE2(ECABProp, this);
  58. REGISTER_INTERFACE2(ECUnknown, this);
  59. REGISTER_INTERFACE2(IABContainer, &this->m_xABContainer);
  60. REGISTER_INTERFACE2(IMAPIContainer, &this->m_xABContainer);
  61. REGISTER_INTERFACE2(IMAPIProp, &this->m_xABContainer);
  62. REGISTER_INTERFACE2(IUnknown, &this->m_xABContainer);
  63. return MAPI_E_INTERFACE_NOT_SUPPORTED;
  64. }
  65. HRESULT ECABContainer::Create(void* lpProvider, ULONG ulObjType, BOOL fModify, ECABContainer **lppABContainer)
  66. {
  67. return alloc_wrap<ECABContainer>(lpProvider, ulObjType, fModify, "IABContainer")
  68. .as(IID_ECABContainer, lppABContainer);
  69. }
  70. HRESULT ECABContainer::OpenProperty(ULONG ulPropTag, LPCIID lpiid, ULONG ulInterfaceOptions, ULONG ulFlags, LPUNKNOWN *lppUnk)
  71. {
  72. HRESULT hr = hrSuccess;
  73. if (lpiid == NULL)
  74. return MAPI_E_INVALID_PARAMETER;
  75. switch (ulPropTag) {
  76. case PR_CONTAINER_CONTENTS:
  77. if(*lpiid == IID_IMAPITable)
  78. hr = GetContentsTable(ulInterfaceOptions, (LPMAPITABLE*)lppUnk);
  79. else
  80. hr = MAPI_E_INTERFACE_NOT_SUPPORTED;
  81. if (hr != hrSuccess)
  82. return hr;
  83. break;
  84. case PR_CONTAINER_HIERARCHY:
  85. if (*lpiid == IID_IMAPITable)
  86. hr = GetHierarchyTable(ulInterfaceOptions, (LPMAPITABLE*)lppUnk);
  87. else
  88. hr = MAPI_E_INTERFACE_NOT_SUPPORTED;
  89. if (hr != hrSuccess)
  90. return hr;
  91. break;
  92. default:
  93. hr = ECABProp::OpenProperty(ulPropTag, lpiid, ulInterfaceOptions, ulFlags, lppUnk);
  94. if (hr != hrSuccess)
  95. return hr;
  96. break;
  97. }
  98. return hr;
  99. }
  100. HRESULT ECABContainer::CopyTo(ULONG ciidExclude, LPCIID rgiidExclude,
  101. const SPropTagArray *lpExcludeProps, ULONG ulUIParam,
  102. LPMAPIPROGRESS lpProgress, LPCIID lpInterface, void *lpDestObj,
  103. ULONG ulFlags, SPropProblemArray **lppProblems)
  104. {
  105. return Util::DoCopyTo(&IID_IABContainer, &this->m_xABContainer, ciidExclude, rgiidExclude, lpExcludeProps, ulUIParam, lpProgress, lpInterface, lpDestObj, ulFlags, lppProblems);
  106. }
  107. HRESULT ECABContainer::CopyProps(const SPropTagArray *lpIncludeProps,
  108. ULONG ulUIParam, LPMAPIPROGRESS lpProgress, LPCIID lpInterface,
  109. void *lpDestObj, ULONG ulFlags, SPropProblemArray **lppProblems)
  110. {
  111. return Util::DoCopyProps(&IID_IABContainer, &this->m_xABContainer, lpIncludeProps, ulUIParam, lpProgress, lpInterface, lpDestObj, ulFlags, lppProblems);
  112. }
  113. HRESULT ECABContainer::DefaultABContainerGetProp(ULONG ulPropTag, void* lpProvider, ULONG ulFlags, LPSPropValue lpsPropValue, void *lpParam, void *lpBase)
  114. {
  115. HRESULT hr = hrSuccess;
  116. auto lpProp = static_cast<ECABProp *>(lpParam);
  117. memory_ptr<SPropValue> lpSectionUid;
  118. object_ptr<IProfSect> lpProfSect;
  119. switch(PROP_ID(ulPropTag)) {
  120. case PROP_ID(PR_EMSMDB_SECTION_UID): {
  121. auto lpLogon = static_cast<ECABLogon *>(lpProvider);
  122. if (lpLogon->m_lpMAPISup == nullptr)
  123. return MAPI_E_NOT_FOUND;
  124. hr = lpLogon->m_lpMAPISup->OpenProfileSection(nullptr, 0, &~lpProfSect);
  125. if(hr != hrSuccess)
  126. return hr;
  127. hr = HrGetOneProp(lpProfSect, PR_EMSMDB_SECTION_UID, &~lpSectionUid);
  128. if(hr != hrSuccess)
  129. return hr;
  130. lpsPropValue->ulPropTag = PR_EMSMDB_SECTION_UID;
  131. if ((hr = MAPIAllocateMore(sizeof(GUID), lpBase, (void **) &lpsPropValue->Value.bin.lpb)) != hrSuccess)
  132. return hr;
  133. memcpy(lpsPropValue->Value.bin.lpb, lpSectionUid->Value.bin.lpb, sizeof(GUID));
  134. lpsPropValue->Value.bin.cb = sizeof(GUID);
  135. break;
  136. }
  137. case PROP_ID(PR_AB_PROVIDER_ID):
  138. lpsPropValue->ulPropTag = PR_AB_PROVIDER_ID;
  139. lpsPropValue->Value.bin.cb = sizeof(GUID);
  140. hr = ECAllocateMore(sizeof(GUID), lpBase, reinterpret_cast<void **>(&lpsPropValue->Value.bin.lpb));
  141. if (hr != hrSuccess)
  142. break;
  143. memcpy(lpsPropValue->Value.bin.lpb, &MUIDECSAB, sizeof(GUID));
  144. break;
  145. case PROP_ID(PR_ACCOUNT):
  146. case PROP_ID(PR_NORMALIZED_SUBJECT):
  147. case PROP_ID(PR_DISPLAY_NAME):
  148. case PROP_ID(PR_TRANSMITABLE_DISPLAY_NAME):
  149. {
  150. LPCTSTR lpszName = NULL;
  151. std::wstring strValue;
  152. hr = lpProp->HrGetRealProp(ulPropTag, ulFlags, lpBase, lpsPropValue);
  153. if(hr != hrSuccess)
  154. return hr;
  155. if (PROP_TYPE(lpsPropValue->ulPropTag) == PT_UNICODE)
  156. strValue = convert_to<std::wstring>(lpsPropValue->Value.lpszW);
  157. else if (PROP_TYPE(lpsPropValue->ulPropTag) == PT_STRING8)
  158. strValue = convert_to<std::wstring>(lpsPropValue->Value.lpszA);
  159. else
  160. return hr;
  161. if(strValue.compare( L"Global Address Book" ) == 0)
  162. lpszName = _("Global Address Book");
  163. else if(strValue.compare( L"Global Address Lists" ) == 0)
  164. lpszName = _("Global Address Lists");
  165. else if (strValue.compare( L"All Address Lists" ) == 0)
  166. lpszName = _("All Address Lists");
  167. if(lpszName) {
  168. if (PROP_TYPE(ulPropTag) == PT_UNICODE) {
  169. const std::wstring strTmp = convert_to<std::wstring>(lpszName);
  170. hr = MAPIAllocateMore((strTmp.size() + 1) * sizeof(WCHAR), lpBase, (void**)&lpsPropValue->Value.lpszW);
  171. if (hr != hrSuccess)
  172. return hr;
  173. wcscpy(lpsPropValue->Value.lpszW, strTmp.c_str());
  174. } else {
  175. const std::string strTmp = convert_to<std::string>(lpszName);
  176. hr = MAPIAllocateMore(strTmp.size() + 1, lpBase, (void**)&lpsPropValue->Value.lpszA);
  177. if (hr != hrSuccess)
  178. return hr;
  179. strcpy(lpsPropValue->Value.lpszA, strTmp.c_str());
  180. }
  181. lpsPropValue->ulPropTag = ulPropTag;
  182. }
  183. }
  184. break;
  185. default:
  186. hr = lpProp->HrGetRealProp(ulPropTag, ulFlags, lpBase, lpsPropValue);
  187. break;
  188. }
  189. return hr;
  190. }
  191. HRESULT ECABContainer::TableRowGetProp(void* lpProvider, struct propVal *lpsPropValSrc, LPSPropValue lpsPropValDst, void **lpBase, ULONG ulType)
  192. {
  193. HRESULT hr = hrSuccess;
  194. ULONG size = 0;
  195. switch(lpsPropValSrc->ulPropTag) {
  196. case PR_ACCOUNT_W:
  197. case PR_NORMALIZED_SUBJECT_W:
  198. case PR_DISPLAY_NAME_W:
  199. case PR_TRANSMITABLE_DISPLAY_NAME_W: {
  200. LPWSTR lpszW = NULL;
  201. if (strcmp(lpsPropValSrc->Value.lpszA, "Global Address Book" ) == 0)
  202. lpszW = _W("Global Address Book");
  203. else if (strcmp(lpsPropValSrc->Value.lpszA, "Global Address Lists" ) == 0)
  204. lpszW = _W("Global Address Lists");
  205. else if (strcmp(lpsPropValSrc->Value.lpszA, "All Address Lists" ) == 0)
  206. lpszW = _W("All Address Lists");
  207. else
  208. return MAPI_E_NOT_FOUND;
  209. size = (wcslen(lpszW) + 1) * sizeof(WCHAR);
  210. hr = MAPIAllocateMore(size, lpBase, (void **)&lpsPropValDst->Value.lpszW);
  211. if (hr != hrSuccess)
  212. return hr;
  213. memcpy(lpsPropValDst->Value.lpszW, lpszW, size);
  214. lpsPropValDst->ulPropTag = lpsPropValSrc->ulPropTag;
  215. break;
  216. }
  217. case PR_ACCOUNT_A:
  218. case PR_NORMALIZED_SUBJECT_A:
  219. case PR_DISPLAY_NAME_A:
  220. case PR_TRANSMITABLE_DISPLAY_NAME_A: {
  221. LPSTR lpszA = NULL;
  222. if (strcmp(lpsPropValSrc->Value.lpszA, "Global Address Book" ) == 0)
  223. lpszA = _A("Global Address Book");
  224. else if (strcmp(lpsPropValSrc->Value.lpszA, "Global Address Lists" ) == 0)
  225. lpszA = _A("Global Address Lists");
  226. else if (strcmp(lpsPropValSrc->Value.lpszA, "All Address Lists" ) == 0)
  227. lpszA = _A("All Address Lists");
  228. else
  229. return MAPI_E_NOT_FOUND;
  230. size = (strlen(lpszA) + 1) * sizeof(CHAR);
  231. hr = MAPIAllocateMore(size, lpBase, (void **)&lpsPropValDst->Value.lpszA);
  232. if (hr != hrSuccess)
  233. return hr;
  234. memcpy(lpsPropValDst->Value.lpszA, lpszA, size);
  235. lpsPropValDst->ulPropTag = lpsPropValSrc->ulPropTag;
  236. break;
  237. }
  238. default:
  239. hr = MAPI_E_NOT_FOUND;
  240. break;
  241. }
  242. return hr;
  243. }
  244. // IMAPIContainer
  245. HRESULT ECABContainer::GetContentsTable(ULONG ulFlags, LPMAPITABLE *lppTable)
  246. {
  247. HRESULT hr = hrSuccess;
  248. object_ptr<ECMAPITable> lpTable;
  249. object_ptr<WSTableView> lpTableOps;
  250. SizedSSortOrderSet(1, sSortByDisplayName);
  251. sSortByDisplayName.cSorts = 1;
  252. sSortByDisplayName.cCategories = 0;
  253. sSortByDisplayName.cExpanded = 0;
  254. sSortByDisplayName.aSort[0].ulPropTag = PR_DISPLAY_NAME;
  255. sSortByDisplayName.aSort[0].ulOrder = TABLE_SORT_ASCEND;
  256. hr = ECMAPITable::Create("AB Contents", nullptr, 0, &~lpTable);
  257. if(hr != hrSuccess)
  258. return hr;
  259. hr = GetABStore()->m_lpTransport->HrOpenABTableOps(MAPI_MAILUSER, ulFlags, m_cbEntryId, m_lpEntryId, (ECABLogon *)this->lpProvider, &~lpTableOps); // also MAPI_DISTLIST
  260. if(hr != hrSuccess)
  261. return hr;
  262. hr = lpTable->HrSetTableOps(lpTableOps, !(ulFlags & MAPI_DEFERRED_ERRORS));
  263. if(hr != hrSuccess)
  264. return hr;
  265. hr = lpTableOps->HrSortTable(sSortByDisplayName);
  266. if(hr != hrSuccess)
  267. return hr;
  268. hr = lpTable->QueryInterface(IID_IMAPITable, (void **)lppTable);
  269. AddChild(lpTable);
  270. return hr;
  271. }
  272. HRESULT ECABContainer::GetHierarchyTable(ULONG ulFlags, LPMAPITABLE *lppTable)
  273. {
  274. HRESULT hr = hrSuccess;
  275. object_ptr<ECMAPITable> lpTable;
  276. object_ptr<WSTableView> lpTableOps;
  277. hr = ECMAPITable::Create("AB hierarchy", GetABStore()->m_lpNotifyClient, ulFlags, &~lpTable);
  278. if(hr != hrSuccess)
  279. return hr;
  280. hr = GetABStore()->m_lpTransport->HrOpenABTableOps(MAPI_ABCONT, ulFlags, m_cbEntryId, m_lpEntryId, (ECABLogon *)this->lpProvider, &~lpTableOps);
  281. if(hr != hrSuccess)
  282. return hr;
  283. hr = lpTable->HrSetTableOps(lpTableOps, !(ulFlags & MAPI_DEFERRED_ERRORS));
  284. if(hr != hrSuccess)
  285. return hr;
  286. hr = lpTable->QueryInterface(IID_IMAPITable, (void **)lppTable);
  287. AddChild(lpTable);
  288. return hr;
  289. }
  290. HRESULT ECABContainer::OpenEntry(ULONG cbEntryID, LPENTRYID lpEntryID, LPCIID lpInterface, ULONG ulFlags, ULONG *lpulObjType, LPUNKNOWN *lppUnk)
  291. {
  292. return GetABStore()->OpenEntry(cbEntryID, lpEntryID, lpInterface, ulFlags, lpulObjType, lppUnk);
  293. }
  294. HRESULT ECABContainer::SetSearchCriteria(LPSRestriction lpRestriction, LPENTRYLIST lpContainerList, ULONG ulSearchFlags)
  295. {
  296. return MAPI_E_NO_SUPPORT;
  297. }
  298. HRESULT ECABContainer::GetSearchCriteria(ULONG ulFlags, LPSRestriction *lppRestriction, LPENTRYLIST *lppContainerList, ULONG *lpulSearchState)
  299. {
  300. return MAPI_E_NO_SUPPORT;
  301. }
  302. // IABContainer
  303. HRESULT ECABContainer::CreateEntry(ULONG cbEntryID, LPENTRYID lpEntryID, ULONG ulCreateFlags, LPMAPIPROP* lppMAPIPropEntry)
  304. {
  305. return MAPI_E_NO_SUPPORT;
  306. }
  307. HRESULT ECABContainer::CopyEntries(LPENTRYLIST lpEntries, ULONG ulUIParam, LPMAPIPROGRESS lpProgress, ULONG ulFlags)
  308. {
  309. return MAPI_E_NO_SUPPORT;
  310. }
  311. HRESULT ECABContainer::DeleteEntries(LPENTRYLIST lpEntries, ULONG ulFlags)
  312. {
  313. return MAPI_E_NO_SUPPORT;
  314. }
  315. HRESULT ECABContainer::ResolveNames(const SPropTagArray *lpPropTagArray,
  316. ULONG ulFlags, LPADRLIST lpAdrList, LPFlagList lpFlagList)
  317. {
  318. static constexpr const SizedSPropTagArray(11, sptaDefault) =
  319. {11, {PR_ADDRTYPE_A, PR_DISPLAY_NAME_A, PR_DISPLAY_TYPE,
  320. PR_EMAIL_ADDRESS_A, PR_SMTP_ADDRESS_A, PR_ENTRYID,
  321. PR_INSTANCE_KEY, PR_OBJECT_TYPE, PR_RECORD_KEY, PR_SEARCH_KEY,
  322. PR_EC_SENDAS_USER_ENTRYIDS}};
  323. static constexpr const SizedSPropTagArray(11, sptaDefaultUnicode) =
  324. {11, {PR_ADDRTYPE_W, PR_DISPLAY_NAME_W, PR_DISPLAY_TYPE,
  325. PR_EMAIL_ADDRESS_W, PR_SMTP_ADDRESS_W, PR_ENTRYID,
  326. PR_INSTANCE_KEY, PR_OBJECT_TYPE, PR_RECORD_KEY, PR_SEARCH_KEY,
  327. PR_EC_SENDAS_USER_ENTRYIDS}};
  328. if (lpPropTagArray == NULL)
  329. lpPropTagArray = (ulFlags & MAPI_UNICODE) ?
  330. sptaDefaultUnicode : sptaDefault;
  331. return ((ECABLogon*)lpProvider)->m_lpTransport->HrResolveNames(lpPropTagArray, ulFlags, lpAdrList, lpFlagList);
  332. }
  333. // Interface IUnknown
  334. DEF_HRMETHOD1(TRACE_MAPI, ECABContainer, ABContainer, QueryInterface, (REFIID, id), (void **, intf))
  335. DEF_ULONGMETHOD1(TRACE_MAPI, ECABContainer, ABContainer, AddRef, (void))
  336. DEF_ULONGMETHOD1(TRACE_MAPI, ECABContainer, ABContainer, Release, (void))
  337. // Interface IABContainer
  338. DEF_HRMETHOD1(TRACE_MAPI, ECABContainer, ABContainer, CreateEntry, (ULONG, cbEntryID), (LPENTRYID, lpEntryID), (ULONG, ulCreateFlags), (LPMAPIPROP *, lppMAPIPropEntry))
  339. DEF_HRMETHOD1(TRACE_MAPI, ECABContainer, ABContainer, CopyEntries, (LPENTRYLIST, lpEntries), (ULONG, ulUIParam), (LPMAPIPROGRESS, lpProgress), (ULONG, ulFlags))
  340. DEF_HRMETHOD1(TRACE_MAPI, ECABContainer, ABContainer, DeleteEntries, (LPENTRYLIST, lpEntries), (ULONG, ulFlags))
  341. DEF_HRMETHOD1(TRACE_MAPI, ECABContainer, ABContainer, ResolveNames, (const SPropTagArray *, lpPropTagArray), (ULONG, ulFlags), (LPADRLIST, lpAdrList), (LPFlagList, lpFlagList))
  342. // Interface IMAPIContainer
  343. DEF_HRMETHOD1(TRACE_MAPI, ECABContainer, ABContainer, GetContentsTable, (ULONG, ulFlags), (LPMAPITABLE *, lppTable))
  344. DEF_HRMETHOD1(TRACE_MAPI, ECABContainer, ABContainer, GetHierarchyTable, (ULONG, ulFlags), (LPMAPITABLE *, lppTable))
  345. DEF_HRMETHOD1(TRACE_MAPI, ECABContainer, ABContainer, OpenEntry, (ULONG, cbEntryID), (LPENTRYID, lpEntryID), (LPCIID, lpInterface), (ULONG, ulFlags), (ULONG *, lpulObjType), (LPUNKNOWN *, lppUnk))
  346. DEF_HRMETHOD1(TRACE_MAPI, ECABContainer, ABContainer, SetSearchCriteria, (LPSRestriction, lpRestriction), (LPENTRYLIST, lpContainerList), (ULONG, ulSearchFlags))
  347. DEF_HRMETHOD1(TRACE_MAPI, ECABContainer, ABContainer, GetSearchCriteria, (ULONG, ulFlags), (LPSRestriction *, lppRestriction), (LPENTRYLIST *, lppContainerList), (ULONG *, lpulSearchState))
  348. // Interface IMAPIProp
  349. DEF_HRMETHOD1(TRACE_MAPI, ECABContainer, ABContainer, GetLastError, (HRESULT, hError), (ULONG, ulFlags), (LPMAPIERROR *, lppMapiError))
  350. DEF_HRMETHOD1(TRACE_MAPI, ECABContainer, ABContainer, SaveChanges, (ULONG, ulFlags))
  351. DEF_HRMETHOD1(TRACE_MAPI, ECABContainer, ABContainer, GetProps, (const SPropTagArray *, lpPropTagArray), (ULONG, ulFlags), (ULONG *, lpcValues), (SPropValue **, lppPropArray))
  352. DEF_HRMETHOD1(TRACE_MAPI, ECABContainer, ABContainer, GetPropList, (ULONG, ulFlags), (LPSPropTagArray *, lppPropTagArray))
  353. DEF_HRMETHOD1(TRACE_MAPI, ECABContainer, ABContainer, OpenProperty, (ULONG, ulPropTag), (LPCIID, lpiid), (ULONG, ulInterfaceOptions), (ULONG, ulFlags), (LPUNKNOWN *, lppUnk))
  354. DEF_HRMETHOD1(TRACE_MAPI, ECABContainer, ABContainer, SetProps, (ULONG, cValues), (const SPropValue *, lpPropArray), (SPropProblemArray **, lppProblems))
  355. DEF_HRMETHOD1(TRACE_MAPI, ECABContainer, ABContainer, DeleteProps, (const SPropTagArray *, lpPropTagArray), (SPropProblemArray **, lppProblems))
  356. DEF_HRMETHOD1(TRACE_MAPI, ECABContainer, ABContainer, CopyTo, (ULONG, ciidExclude), (LPCIID, rgiidExclude), (const SPropTagArray *, lpExcludeProps), (ULONG, ulUIParam), (LPMAPIPROGRESS, lpProgress), (LPCIID, lpInterface), (void *, lpDestObj), (ULONG, ulFlags), (SPropProblemArray **, lppProblems))
  357. DEF_HRMETHOD1(TRACE_MAPI, ECABContainer, ABContainer, CopyProps, (const SPropTagArray *, lpIncludeProps), (ULONG, ulUIParam), (LPMAPIPROGRESS, lpProgress), (LPCIID, lpInterface), (void *, lpDestObj), (ULONG, ulFlags), (SPropProblemArray **, lppProblems))
  358. DEF_HRMETHOD1(TRACE_MAPI, ECABContainer, ABContainer, GetNamesFromIDs, (LPSPropTagArray *, pptaga), (LPGUID, lpguid), (ULONG, ulFlags), (ULONG *, pcNames), (LPMAPINAMEID **, pppNames))
  359. DEF_HRMETHOD1(TRACE_MAPI, ECABContainer, ABContainer, GetIDsFromNames, (ULONG, cNames), (LPMAPINAMEID *, ppNames), (ULONG, ulFlags), (LPSPropTagArray *, pptaga))