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.

1790 lines
82 KiB

  1. /*
  2. * M A P I V A L . H
  3. *
  4. * Macros used to validate parameters on standard MAPI object methods.
  5. * Used in conjunction with routines found in MAPIU.DLL.
  6. *
  7. * Copyright 1986-1999 Microsoft Corporation. All Rights Reserved.
  8. */
  9. #ifndef _INC_VALIDATE
  10. #define _INC_VALIDATE
  11. #if _MSC_VER > 1000
  12. #pragma once
  13. #endif
  14. #ifdef __cplusplus
  15. extern "C" {
  16. #endif
  17. #ifndef MAPIUTIL_H
  18. #include <mapiutil.h>
  19. #endif
  20. #include <stddef.h>
  21. #include <stdarg.h>
  22. #define MAKE_ENUM(Method, Interface) Interface##_##Method
  23. typedef enum _tagMethods
  24. {
  25. /* IUnknown */
  26. MAKE_ENUM(QueryInterface, IUnknown) = 0,
  27. MAKE_ENUM(AddRef, IUnknown), /* For completness */
  28. MAKE_ENUM(Release, IUnknown), /* For completness */
  29. /* IMAPIProps */
  30. MAKE_ENUM(GetLastError, IMAPIProp),
  31. MAKE_ENUM(SaveChanges, IMAPIProp),
  32. MAKE_ENUM(GetProps, IMAPIProp),
  33. MAKE_ENUM(GetPropList, IMAPIProp),
  34. MAKE_ENUM(OpenProperty, IMAPIProp),
  35. MAKE_ENUM(SetProps, IMAPIProp),
  36. MAKE_ENUM(DeleteProps, IMAPIProp),
  37. MAKE_ENUM(CopyTo, IMAPIProp),
  38. MAKE_ENUM(CopyProps, IMAPIProp),
  39. MAKE_ENUM(GetNamesFromIDs, IMAPIProp),
  40. MAKE_ENUM(GetIDsFromNames, IMAPIProp),
  41. /* IMAPITable */
  42. MAKE_ENUM(GetLastError, IMAPITable),
  43. MAKE_ENUM(Advise, IMAPITable),
  44. MAKE_ENUM(Unadvise, IMAPITable),
  45. MAKE_ENUM(GetStatus, IMAPITable),
  46. MAKE_ENUM(SetColumns, IMAPITable),
  47. MAKE_ENUM(QueryColumns, IMAPITable),
  48. MAKE_ENUM(GetRowCount, IMAPITable),
  49. MAKE_ENUM(SeekRow, IMAPITable),
  50. MAKE_ENUM(SeekRowApprox, IMAPITable),
  51. MAKE_ENUM(QueryPosition, IMAPITable),
  52. MAKE_ENUM(FindRow, IMAPITable),
  53. MAKE_ENUM(Restrict, IMAPITable),
  54. MAKE_ENUM(CreateBookmark, IMAPITable),
  55. MAKE_ENUM(FreeBookmark, IMAPITable),
  56. MAKE_ENUM(SortTable, IMAPITable),
  57. MAKE_ENUM(QuerySortOrder, IMAPITable),
  58. MAKE_ENUM(QueryRows, IMAPITable),
  59. MAKE_ENUM(Abort, IMAPITable),
  60. MAKE_ENUM(ExpandRow, IMAPITable),
  61. MAKE_ENUM(CollapseRow, IMAPITable),
  62. MAKE_ENUM(WaitForCompletion, IMAPITable),
  63. MAKE_ENUM(GetCollapseState, IMAPITable),
  64. MAKE_ENUM(SetCollapseState, IMAPITable),
  65. /* IMAPIContainer */
  66. MAKE_ENUM(GetContentsTable, IMAPIContainer),
  67. MAKE_ENUM(GetHierarchyTable, IMAPIContainer),
  68. MAKE_ENUM(OpenEntry, IMAPIContainer),
  69. MAKE_ENUM(SetSearchCriteria, IMAPIContainer),
  70. MAKE_ENUM(GetSearchCriteria, IMAPIContainer),
  71. /* IABContainer */
  72. MAKE_ENUM(CreateEntry, IABContainer),
  73. MAKE_ENUM(CopyEntries, IABContainer),
  74. MAKE_ENUM(DeleteEntries, IABContainer),
  75. MAKE_ENUM(ResolveNames, IABContainer),
  76. /* IDistList */
  77. MAKE_ENUM(CreateEntry, IDistList),
  78. MAKE_ENUM(CopyEntries, IDistList),
  79. MAKE_ENUM(DeleteEntries, IDistList),
  80. MAKE_ENUM(ResolveNames, IDistList),
  81. /* IMAPIFolder */
  82. MAKE_ENUM(CreateMessage, IMAPIFolder),
  83. MAKE_ENUM(CopyMessages, IMAPIFolder),
  84. MAKE_ENUM(DeleteMessages, IMAPIFolder),
  85. MAKE_ENUM(CreateFolder, IMAPIFolder),
  86. MAKE_ENUM(CopyFolder, IMAPIFolder),
  87. MAKE_ENUM(DeleteFolder, IMAPIFolder),
  88. MAKE_ENUM(SetReadFlags, IMAPIFolder),
  89. MAKE_ENUM(GetMessageStatus, IMAPIFolder),
  90. MAKE_ENUM(SetMessageStatus, IMAPIFolder),
  91. MAKE_ENUM(SaveContentsSort, IMAPIFolder),
  92. MAKE_ENUM(EmptyFolder, IMAPIFolder),
  93. /* IMsgStore */
  94. MAKE_ENUM(Advise, IMsgStore),
  95. MAKE_ENUM(Unadvise, IMsgStore),
  96. MAKE_ENUM(CompareEntryIDs, IMsgStore),
  97. MAKE_ENUM(OpenEntry, IMsgStore),
  98. MAKE_ENUM(SetReceiveFolder, IMsgStore),
  99. MAKE_ENUM(GetReceiveFolder, IMsgStore),
  100. MAKE_ENUM(GetReceiveFolderTable, IMsgStore),
  101. MAKE_ENUM(StoreLogoff, IMsgStore),
  102. MAKE_ENUM(AbortSubmit, IMsgStore),
  103. MAKE_ENUM(GetOutgoingQueue, IMsgStore),
  104. MAKE_ENUM(SetLockState, IMsgStore),
  105. MAKE_ENUM(FinishedMsg, IMsgStore),
  106. MAKE_ENUM(NotifyNewMail, IMsgStore),
  107. /* IMessage */
  108. MAKE_ENUM(GetAttachmentTable, IMessage),
  109. MAKE_ENUM(OpenAttach, IMessage),
  110. MAKE_ENUM(CreateAttach, IMessage),
  111. MAKE_ENUM(DeleteAttach, IMessage),
  112. MAKE_ENUM(GetRecipientTable, IMessage),
  113. MAKE_ENUM(ModifyRecipients, IMessage),
  114. MAKE_ENUM(SubmitMessage, IMessage),
  115. MAKE_ENUM(SetReadFlag, IMessage),
  116. /* IABProvider */
  117. MAKE_ENUM(Shutdown, IABProvider),
  118. MAKE_ENUM(Logon, IABProvider),
  119. /* IABLogon */
  120. MAKE_ENUM(GetLastError, IABLogon),
  121. MAKE_ENUM(Logoff, IABLogon),
  122. MAKE_ENUM(OpenEntry, IABLogon),
  123. MAKE_ENUM(CompareEntryIDs, IABLogon),
  124. MAKE_ENUM(Advise, IABLogon),
  125. MAKE_ENUM(Unadvise, IABLogon),
  126. MAKE_ENUM(OpenStatusEntry, IABLogon),
  127. MAKE_ENUM(OpenTemplateID, IABLogon),
  128. MAKE_ENUM(GetOneOffTable, IABLogon),
  129. MAKE_ENUM(PrepareRecips, IABLogon),
  130. /* IXPProvider */
  131. MAKE_ENUM(Shutdown, IXPProvider),
  132. MAKE_ENUM(TransportLogon, IXPProvider),
  133. /* IXPLogon */
  134. MAKE_ENUM(AddressTypes, IXPLogon),
  135. MAKE_ENUM(RegisterOptions, IXPLogon),
  136. MAKE_ENUM(TransportNotify, IXPLogon),
  137. MAKE_ENUM(Idle, IXPLogon),
  138. MAKE_ENUM(TransportLogoff, IXPLogon),
  139. MAKE_ENUM(SubmitMessage, IXPLogon),
  140. MAKE_ENUM(EndMessage, IXPLogon),
  141. MAKE_ENUM(Poll, IXPLogon),
  142. MAKE_ENUM(StartMessage, IXPLogon),
  143. MAKE_ENUM(OpenStatusEntry, IXPLogon),
  144. MAKE_ENUM(ValidateState, IXPLogon),
  145. MAKE_ENUM(FlushQueues, IXPLogon),
  146. /* IMSProvider */
  147. MAKE_ENUM(Shutdown, IMSProvider),
  148. MAKE_ENUM(Logon, IMSProvider),
  149. MAKE_ENUM(SpoolerLogon, IMSProvider),
  150. MAKE_ENUM(CompareStoreIDs, IMSProvider),
  151. /* IMSLogon */
  152. MAKE_ENUM(GetLastError, IMSLogon),
  153. MAKE_ENUM(Logoff, IMSLogon),
  154. MAKE_ENUM(OpenEntry, IMSLogon),
  155. MAKE_ENUM(CompareEntryIDs, IMSLogon),
  156. MAKE_ENUM(Advise, IMSLogon),
  157. MAKE_ENUM(Unadvise, IMSLogon),
  158. MAKE_ENUM(OpenStatusEntry, IMSLogon),
  159. /* IMAPIControl */
  160. MAKE_ENUM(GetLastError, IMAPIControl),
  161. MAKE_ENUM(Activate, IMAPIControl),
  162. MAKE_ENUM(GetState, IMAPIControl),
  163. /* IMAPIStatus */
  164. MAKE_ENUM(ValidateState, IMAPIStatus),
  165. MAKE_ENUM(SettingsDialog, IMAPIStatus),
  166. MAKE_ENUM(ChangePassword, IMAPIStatus),
  167. MAKE_ENUM(FlushQueues, IMAPIStatus),
  168. /* IStream */
  169. MAKE_ENUM(Read, IStream),
  170. MAKE_ENUM(Write, IStream),
  171. MAKE_ENUM(Seek, IStream),
  172. MAKE_ENUM(SetSize, IStream),
  173. MAKE_ENUM(CopyTo, IStream),
  174. MAKE_ENUM(Commit, IStream),
  175. MAKE_ENUM(Revert, IStream),
  176. MAKE_ENUM(LockRegion, IStream),
  177. MAKE_ENUM(UnlockRegion, IStream),
  178. MAKE_ENUM(Stat, IStream),
  179. MAKE_ENUM(Clone, IStream),
  180. /* IMAPIAdviseSink */
  181. MAKE_ENUM(OnNotify, IMAPIAdviseSink),
  182. } METHODS;
  183. /* Macro wrappers to hide the Validate function return handling */
  184. #if defined(_X86_) || defined( WIN16 )
  185. #ifdef __cplusplus
  186. /* C++ methods can't take the address of the This pointer, so we must
  187. use the first parameter instead */
  188. #define ValidateParameters(eMethod, First) \
  189. { HRESULT _hr_; \
  190. _hr_ = __CPPValidateParameters(eMethod, (LPVOID) &First); \
  191. if (HR_FAILED(_hr_)) return (_hr_); }
  192. #define UlValidateParameters(eMethod, First) \
  193. { HRESULT _hr_; \
  194. _hr_ = __CPPValidateParameters(eMethod, &First); \
  195. if (HR_FAILED(_hr_)) return (ULONG) (_hr_); }
  196. /* Methods called by MAPI should have correct parameters
  197. - just assert in Debug to check */
  198. #define CheckParameters(eMethod, First) \
  199. AssertSz(HR_SUCCEEDED(__CPPValidateParameters(eMethod, &First)), "Parameter validation failed for method called by MAPI!")
  200. #else /* __cplusplus */
  201. /* For methods that will be called by clients
  202. - validate always */
  203. #define ValidateParameters(eMethod, ppThis) \
  204. { HRESULT _hr_; \
  205. _hr_ = __ValidateParameters(eMethod, ppThis); \
  206. if (HR_FAILED(_hr_)) return (_hr_); }
  207. #define UlValidateParameters(eMethod, ppThis) \
  208. { HRESULT _hr_; \
  209. _hr_ = __ValidateParameters(eMethod, ppThis); \
  210. if (HR_FAILED(_hr_)) return (ULONG) (_hr_); }
  211. /* Methods called by MAPI should have correct parameters
  212. - just assert in Debug to check */
  213. #define CheckParameters(eMethod, ppThis) \
  214. AssertSz(HR_SUCCEEDED(__ValidateParameters(eMethod, ppThis)), "Parameter validation failed for method called by MAPI!")
  215. #endif /* __cplusplus */
  216. #endif /* _X86_ || WIN16 */
  217. /* Prototypes for functions used to validate complex parameters.
  218. */
  219. #define FBadPropVal( lpPropVal) (FAILED(ScCountProps( 1, lpPropVal, NULL)))
  220. #define FBadRgPropVal( lpPropVal, cValues) \
  221. (FAILED(ScCountProps( cValues, lpPropVal, NULL)))
  222. #define FBadAdrList( lpAdrList) \
  223. ( AssertSz( ( offsetof( ADRLIST, cEntries) \
  224. == offsetof( SRowSet, cRows)) \
  225. && ( offsetof( ADRLIST, aEntries) \
  226. == offsetof( SRowSet, aRow)) \
  227. && ( offsetof( ADRENTRY, cValues) \
  228. == offsetof( SRow, cValues)) \
  229. && ( offsetof( ADRENTRY, rgPropVals) \
  230. == offsetof( SRow, lpProps)) \
  231. , "ADRLIST doesn't match SRowSet") \
  232. || FBadRowSet( (LPSRowSet) lpAdrList))
  233. STDAPI_(BOOL)
  234. FBadRglpszW( LPWSTR FAR *lppszW,
  235. ULONG cStrings);
  236. STDAPI_(BOOL)
  237. FBadRowSet( LPSRowSet lpRowSet);
  238. STDAPI_(BOOL)
  239. FBadRglpNameID( LPMAPINAMEID FAR * lppNameId,
  240. ULONG cNames);
  241. STDAPI_(BOOL)
  242. FBadEntryList( LPENTRYLIST lpEntryList);
  243. /* BAD_STANDARD_OBJ
  244. *
  245. * This macro insures that the object is a writable object of the correct size
  246. * and that this method belongs to the object.
  247. *
  248. * NOTES ON USE!
  249. * This depends upon using the standard method of declaring the object
  250. * interface.
  251. *
  252. * prefix is the method prefix you chose when declaring the object interface.
  253. * method is the standard method name of the calling method.
  254. * lpVtbl is the name of the lpVtbl element of your object.
  255. */
  256. #define BAD_STANDARD_OBJ( lpObj, prefix, method, lpVtbl) \
  257. ( IsBadWritePtr( (lpObj), sizeof(*lpObj)) \
  258. || IsBadReadPtr( (void *) &(lpObj->lpVtbl->method), sizeof(LPVOID)) \
  259. ||( ( LPVOID) (lpObj->lpVtbl->method) != (LPVOID) (prefix##method)))
  260. #define FBadUnknown( lpObj ) \
  261. ( IsBadReadPtr( (lpObj), sizeof(LPVOID) ) \
  262. || IsBadReadPtr( (lpObj)->lpVtbl, 3 * sizeof(LPUNKNOWN) ) \
  263. || IsBadCodePtr( (FARPROC)(lpObj)->lpVtbl->QueryInterface ))
  264. /*
  265. * IUnknown
  266. */
  267. /*
  268. * QueryInterface
  269. */
  270. #define FBadQueryInterface( lpObj, riid, ppvObj) \
  271. ( IsBadReadPtr( riid, sizeof(IID)) \
  272. || IsBadWritePtr( ppvObj, sizeof(LPVOID)))
  273. /*
  274. * AddRef
  275. * No parameter validation required.
  276. */
  277. #define FBadAddRef( lpObj) FALSE
  278. /*
  279. * Release
  280. * No parameter validation required.
  281. */
  282. #define FBadRelease( lpObj) FALSE
  283. /*
  284. * GetLastError
  285. */
  286. #define FBadGetLastError( lpObj, hResult, ulFlags, lppMAPIError )\
  287. (IsBadWritePtr( lppMAPIError, sizeof(LPMAPIERROR)))
  288. /*
  289. * IMAPIProp
  290. */
  291. /*
  292. * SaveChanges
  293. * No parameter validation required.
  294. */
  295. #define FBadSaveChanges( lpObj, ulFlags) FALSE
  296. /*
  297. * GetProps
  298. */
  299. #define FBadGetProps( lpObj, lpPTagA, lpcValues, lppPropArray) \
  300. ( ( lpPTagA \
  301. && ( IsBadReadPtr( lpPTagA, sizeof(ULONG)) \
  302. || IsBadReadPtr( lpPTagA, (UINT)( (lpPTagA->cValues + 1) \
  303. * sizeof(ULONG))))) \
  304. || IsBadWritePtr( lpcValues, sizeof(ULONG)) \
  305. || IsBadWritePtr( lppPropArray, sizeof(LPSPropValue)))
  306. /*
  307. * GetPropList
  308. */
  309. #define FBadGetPropList( lpObj, lppPTagA) \
  310. (IsBadWritePtr( lppPTagA, sizeof(LPSPropTagArray FAR *)))
  311. /*
  312. * OpenProperty
  313. */
  314. #define FBadOpenProperty( lpObj, ulPropTag, lpiid, ulInterfaceOptions, ulFlags \
  315. , lppUnk) \
  316. ( IsBadReadPtr( lpiid, sizeof(IID)) \
  317. || IsBadWritePtr( lppUnk, sizeof (LPUNKNOWN FAR *)))
  318. /*
  319. * SetProps
  320. */
  321. #define FBadSetProps( lpObj, cValues, lpPropArray, lppProblems) \
  322. ( FBadRgPropVal( lpPropArray, (UINT) cValues) \
  323. || ( lppProblems \
  324. && IsBadWritePtr( lppProblems, sizeof(LPSPropProblemArray))))
  325. /*
  326. * DeleteProps
  327. */
  328. #define FBadDeleteProps( lpObj, lpPTagA, lppProblems) \
  329. ( ( !lpPTagA \
  330. || ( IsBadReadPtr( lpPTagA, sizeof(ULONG)) \
  331. || IsBadReadPtr( lpPTagA, (UINT)( (lpPTagA->cValues + 1) \
  332. * sizeof(ULONG))))) \
  333. || ( lppProblems \
  334. && IsBadWritePtr( lppProblems, sizeof(LPSPropProblemArray))))
  335. /*
  336. * CopyTo
  337. */
  338. #define FBadCopyTo( lpIPDAT, ciidExclude, rgiidExclude, lpExcludeProps \
  339. , ulUIParam, lpProgress, lpInterface, lpDestObj \
  340. , ulFlags, lppProblems) \
  341. ( ( ciidExclude \
  342. && ( IsBadReadPtr( rgiidExclude, (UINT)(ciidExclude * sizeof(IID))))) \
  343. || ( lpExcludeProps \
  344. && ( IsBadReadPtr( lpExcludeProps, sizeof(ULONG)) \
  345. || IsBadReadPtr( lpExcludeProps \
  346. , (UINT)( (lpExcludeProps->cValues + 1) \
  347. * sizeof(ULONG))))) \
  348. || (lpProgress && FBadUnknown( lpProgress )) \
  349. || (lpInterface && IsBadReadPtr( lpInterface, sizeof(IID))) \
  350. || IsBadReadPtr( lpDestObj, sizeof(LPVOID)) \
  351. || ( lppProblems \
  352. && IsBadWritePtr( lppProblems, sizeof(LPSPropProblemArray))))
  353. /*
  354. * CopyProps
  355. */
  356. #define FBadCopyProps( lpIPDAT, lpPropTagArray \
  357. , ulUIParam, lpProgress, lpInterface, lpDestObj \
  358. , ulFlags, lppProblems) \
  359. ( ( lpPropTagArray \
  360. && ( IsBadReadPtr( lpPropTagArray, sizeof(ULONG)) \
  361. || IsBadReadPtr( lpPropTagArray \
  362. , (UINT)( (lpPropTagArray->cValues + 1) \
  363. * sizeof(ULONG))))) \
  364. || (lpProgress && FBadUnknown( lpProgress )) \
  365. || (lpInterface && IsBadReadPtr( lpInterface, sizeof(IID))) \
  366. || IsBadReadPtr( lpDestObj, sizeof(LPVOID)) \
  367. || ( lppProblems \
  368. && IsBadWritePtr( lppProblems, sizeof(LPSPropProblemArray))))
  369. /*
  370. * GetNamesFromIDs
  371. */
  372. #define FBadGetNamesFromIDs( lpIPDAT, lppPropTags, lpPropSetGuid, ulFlags, \
  373. lpcPropNames, lpppPropNames) \
  374. ( IsBadReadPtr( lppPropTags, sizeof(LPSPropTagArray)) \
  375. || ( lpPropSetGuid && IsBadReadPtr( lpPropSetGuid, sizeof(GUID))) \
  376. || ( *lppPropTags \
  377. && ( IsBadReadPtr( *lppPropTags, sizeof(ULONG)) \
  378. || IsBadReadPtr( *lppPropTags \
  379. , (UINT)( ( ( *lppPropTags)->cValues + 1) \
  380. * sizeof(ULONG))))) \
  381. || IsBadWritePtr( lpcPropNames, sizeof (ULONG)) \
  382. || IsBadWritePtr( lpppPropNames, sizeof (LPVOID FAR *)))
  383. /*
  384. * GetNamesFromIDs
  385. */
  386. #define FBadGetIDsFromNames( lpIPDAT, cPropNames, lppPropNames, ulFlags \
  387. , lppPropTags) \
  388. ( (cPropNames && FBadRglpNameID( lppPropNames, cPropNames)) \
  389. || IsBadWritePtr( lppPropTags, sizeof(LPULONG FAR *)))
  390. STDAPI_(ULONG)
  391. FBadRestriction( LPSRestriction lpres );
  392. STDAPI_(ULONG)
  393. FBadPropTag( ULONG ulPropTag );
  394. STDAPI_(ULONG)
  395. FBadRow( LPSRow lprow );
  396. STDAPI_(ULONG)
  397. FBadProp( LPSPropValue lpprop );
  398. STDAPI_(ULONG)
  399. FBadSortOrderSet( LPSSortOrderSet lpsos );
  400. STDAPI_(ULONG)
  401. FBadColumnSet( LPSPropTagArray lpptaCols );
  402. /* Validation function
  403. The eMethod parameter tells us which internal validation to perform.
  404. The ppThis parameter tells us where the stack is, so we can access the other
  405. parameters.
  406. Becuase of this *magic* we MUST obtain the pointer to the This pointer in
  407. the method function.
  408. */
  409. #ifdef WIN16
  410. #define BASED_STACK __based(__segname("_STACK"))
  411. #else
  412. #define BASED_STACK
  413. #endif
  414. #ifdef WIN16
  415. HRESULT PASCAL
  416. #else
  417. HRESULT STDAPICALLTYPE
  418. #endif
  419. __CPPValidateParameters(METHODS eMethod, const LPVOID ppFirst);
  420. #ifdef WIN16
  421. HRESULT PASCAL
  422. #else
  423. HRESULT STDAPICALLTYPE
  424. #endif
  425. __ValidateParameters(METHODS eMethod, LPVOID ppThis);
  426. #ifdef _MAC
  427. #define STDAPIVCALLTYPE __cdecl
  428. #define STDAPIV EXTERN_C HRESULT STDAPIVCALLTYPE
  429. #define STDAPIV_(type) EXTERN_C type STDAPIVCALLTYPE
  430. #endif /* _MAC */
  431. /* Macro wrappers for platform independent validation */
  432. #if defined(_X86_) || defined( WIN16 )
  433. #define ValidateParms(x) { HRESULT _hr_ = HrValidateParameters x; if (HR_FAILED(_hr_)) return (_hr_); }
  434. #define UlValidateParms(x) { HRESULT _hr_ = HrValidateParameters x; if (HR_FAILED(_hr_)) return (ULONG)(_hr_); }
  435. #define CheckParms(x) AssertSz(HR_SUCCEEDED( HrValidateParameters x), "Parameter validation failed for method called by MAPI!")
  436. #else
  437. #define ValidateParms(x) { HRESULT _hr_ = HrValidateParametersV x; if (HR_FAILED(_hr_)) return (_hr_); }
  438. #define UlValidateParms(x) { HRESULT _hr_ = HrValidateParametersV x; if (HR_FAILED(_hr_)) return (ULONG)(_hr_); }
  439. #define CheckParms(x) AssertSz(HR_SUCCEEDED( HrValidateParametersV x ), "Parameter validation failed for method called by MAPI!")
  440. #endif
  441. #if defined(_X86_) || defined( WIN16 )
  442. #define ValidateParameters1( m, a1 )
  443. #define ValidateParameters2( m, a1, a2 ) \
  444. ValidateParms( ( m, (LPVOID FAR *) &a2 ) )
  445. #define ValidateParameters3( m, a1, a2, a3 ) \
  446. ValidateParms( ( m, (LPVOID FAR *) &a2 ) )
  447. #define ValidateParameters4( m, a1, a2, a3, a4 ) \
  448. ValidateParms( ( m, (LPVOID FAR *) &a2 ) )
  449. #define ValidateParameters5( m, a1, a2, a3, a4, a5 ) \
  450. ValidateParms( ( m, (LPVOID FAR *) &a2 ) )
  451. #define ValidateParameters6( m, a1, a2, a3, a4, a5, a6 ) \
  452. ValidateParms( ( m, (LPVOID FAR *) &a2 ) )
  453. #define ValidateParameters7( m, a1, a2, a3, a4, a5, a6, a7 ) \
  454. ValidateParms( ( m, (LPVOID FAR *) &a2 ) )
  455. #define ValidateParameters8( m, a1, a2, a3, a4, a5, a6, a7, a8 ) \
  456. ValidateParms( ( m, (LPVOID FAR *) &a2 ) )
  457. #define ValidateParameters9( m, a1, a2, a3, a4, a5, a6, a7, a8, a9 ) \
  458. ValidateParms( ( m, (LPVOID FAR *) &a2 ) )
  459. #define ValidateParameters10( m, a1, a2, a3, a4, a5, a6, a7, a8, a9, a10 ) \
  460. ValidateParms( ( m, (LPVOID FAR *) &a2 ) )
  461. #define ValidateParameters11( m, a1, a2, a3, a4, a5, a6, a7, a8, a9, a10, a11 ) \
  462. ValidateParms( ( m, (LPVOID FAR *) &a2 ) )
  463. #define ValidateParameters12( m, a1, a2, a3, a4, a5, a6, a7, a8, a9, a10, a11, a12 ) \
  464. ValidateParms( ( m, (LPVOID FAR *) &a2 ) )
  465. #define ValidateParameters13( m, a1, a2, a3, a4, a5, a6, a7, a8, a9, a10, a11, a12, a13 ) \
  466. ValidateParms( ( m, (LPVOID FAR *) &a2 ) )
  467. #define ValidateParameters14( m, a1, a2, a3, a4, a5, a6, a7, a8, a9, a10, a11, a12, a13, a14 ) \
  468. ValidateParms( ( m, (LPVOID FAR *) &a2 ) )
  469. #define ValidateParameters15( m, a1, a2, a3, a4, a5, a6, a7, a8, a9, a10, a11, a12, a13, a14, a15 ) \
  470. ValidateParms( ( m, (LPVOID FAR *) &a2 ) )
  471. #define ValidateParameters16( m, a1, a2, a3, a4, a5, a6, a7, a8, a9, a10, a11, a12, a13, a14, a15, a16 ) \
  472. ValidateParms( ( m, (LPVOID FAR *) &a2 ) )
  473. #define UlValidateParameters1( m, a1 )
  474. #define UlValidateParameters2( m, a1, a2 ) \
  475. UlValidateParms( ( m, (LPVOID FAR *) &a2 ) )
  476. #define UlValidateParameters3( m, a1, a2, a3 ) \
  477. UlValidateParms( ( m, (LPVOID FAR *) &a2 ) )
  478. #define UlValidateParameters4( m, a1, a2, a3, a4 ) \
  479. UlValidateParms( ( m, (LPVOID FAR *) &a2 ) )
  480. #define UlValidateParameters5( m, a1, a2, a3, a4, a5 ) \
  481. UlValidateParms( ( m, (LPVOID FAR *) &a2 ) )
  482. #define UlValidateParameters6( m, a1, a2, a3, a4, a5, a6 ) \
  483. UlValidateParms( ( m, (LPVOID FAR *) &a2 ) )
  484. #define UlValidateParameters7( m, a1, a2, a3, a4, a5, a6, a7 ) \
  485. UlValidateParms( ( m, (LPVOID FAR *) &a2 ) )
  486. #define UlValidateParameters8( m, a1, a2, a3, a4, a5, a6, a7, a8 ) \
  487. UlValidateParms( ( m, (LPVOID FAR *) &a2 ) )
  488. #define UlValidateParameters9( m, a1, a2, a3, a4, a5, a6, a7, a8, a9 ) \
  489. UlValidateParms( ( m, (LPVOID FAR *) &a2 ) )
  490. #define UlValidateParameters10( m, a1, a2, a3, a4, a5, a6, a7, a8, a9, a10 ) \
  491. UlValidateParms( ( m, (LPVOID FAR *) &a2 ) )
  492. #define UlValidateParameters11( m, a1, a2, a3, a4, a5, a6, a7, a8, a9, a10, a11 ) \
  493. UlValidateParms( ( m, (LPVOID FAR *) &a2 ) )
  494. #define UlValidateParameters12( m, a1, a2, a3, a4, a5, a6, a7, a8, a9, a10, a11, a12 ) \
  495. UlValidateParms( ( m, (LPVOID FAR *) &a2 ) )
  496. #define UlValidateParameters13( m, a1, a2, a3, a4, a5, a6, a7, a8, a9, a10, a11, a12, a13 ) \
  497. UlValidateParms( ( m, (LPVOID FAR *) &a2 ) )
  498. #define UlValidateParameters14( m, a1, a2, a3, a4, a5, a6, a7, a8, a9, a10, a11, a12, a13, a14 ) \
  499. UlValidateParms( ( m, (LPVOID FAR *) &a2 ) )
  500. #define UlValidateParameters15( m, a1, a2, a3, a4, a5, a6, a7, a8, a9, a10, a11, a12, a13, a14, a15 ) \
  501. UlValidateParms( ( m, (LPVOID FAR *) &a2 ) )
  502. #define UlValidateParameters16( m, a1, a2, a3, a4, a5, a6, a7, a8, a9, a10, a11, a12, a13, a14, a15, a16 ) \
  503. UlValidateParms( ( m, (LPVOID FAR *) &a2 ) )
  504. #define CheckParameters1( m, a1 )
  505. #define CheckParameters2( m, a1, a2 ) \
  506. CheckParms( ( m, (LPVOID FAR *) &a2 ) )
  507. #define CheckParameters3( m, a1, a2, a3) \
  508. CheckParms( ( m, (LPVOID FAR *) &a2 ) )
  509. #define CheckParameters4( m, a1, a2, a3, a4 ) \
  510. CheckParms( ( m, (LPVOID FAR *) &a2 ) )
  511. #define CheckParameters5( m, a1, a2, a3, a4, a5 ) \
  512. CheckParms( ( m, (LPVOID FAR *) &a2 ) )
  513. #define CheckParameters6( m, a1, a2, a3, a4, a5, a6 ) \
  514. CheckParms( ( m, (LPVOID FAR *) &a2 ) )
  515. #define CheckParameters7( m, a1, a2, a3, a4, a5, a6, a7 ) \
  516. CheckParms( ( m, (LPVOID FAR *) &a2 ) )
  517. #define CheckParameters8( m, a1, a2, a3, a4, a5, a6, a7, a8 ) \
  518. CheckParms( ( m, (LPVOID FAR *) &a2 ) )
  519. #define CheckParameters9( m, a1, a2, a3, a4, a5, a6, a7, a8, a9 ) \
  520. CheckParms( ( m, (LPVOID FAR *) &a2 ) )
  521. #define CheckParameters10( m, a1, a2, a3, a4, a5, a6, a7, a8, a9, a10 ) \
  522. CheckParms( ( m, (LPVOID FAR *) &a2 ) )
  523. #define CheckParameters11( m, a1, a2, a3, a4, a5, a6, a7, a8, a9, a10, a11 ) \
  524. CheckParms( ( m, (LPVOID FAR *) &a2 ) )
  525. #define CheckParameters12( m, a1, a2, a3, a4, a5, a6, a7, a8, a9, a10, a11, a12 ) \
  526. CheckParms( ( m, (LPVOID FAR *) &a2 ) )
  527. #define CheckParameters13( m, a1, a2, a3, a4, a5, a6, a7, a8, a9, a10, a11, a12, a13 ) \
  528. CheckParms( ( m, (LPVOID FAR *) &a2 ) )
  529. #define CheckParameters14( m, a1, a2, a3, a4, a5, a6, a7, a8, a9, a10, a11, a12, a13, a14 ) \
  530. CheckParms( ( m, (LPVOID FAR *) &a2 ) )
  531. #define CheckParameters15( m, a1, a2, a3, a4, a5, a6, a7, a8, a9, a10, a11, a12, a13, a14, a15 ) \
  532. CheckParms( ( m, (LPVOID FAR *) &a2 ) )
  533. #define CheckParameters16( m, a1, a2, a3, a4, a5, a6, a7, a8, a9, a10, a11, a12, a13, a14, a15, a16 ) \
  534. CheckParms( ( m, (LPVOID FAR *) &a2 ) )
  535. #else /* !_X86_ && !WIN16 */
  536. #define ValidateParameters1( m, a1 ) \
  537. ValidateParms( ( m, a1 ) )
  538. #define ValidateParameters2( m, a1, a2 ) \
  539. ValidateParms( ( m, a1, a2 ))
  540. #define ValidateParameters3( m, a1, a2, a3 ) \
  541. ValidateParms( ( m, a1, a2, a3 ))
  542. #define ValidateParameters4( m, a1, a2, a3, a4 ) \
  543. ValidateParms( ( m, a1, a2, a3, a4 ))
  544. #define ValidateParameters5( m, a1, a2, a3, a4, a5 ) \
  545. ValidateParms( ( m, a1, a2, a3, a4, a5 ))
  546. #define ValidateParameters6( m, a1, a2, a3, a4, a5, a6 ) \
  547. ValidateParms( ( m, a1, a2, a3, a4, a5, a6 ))
  548. #define ValidateParameters7( m, a1, a2, a3, a4, a5, a6, a7 ) \
  549. ValidateParms( ( m, a1, a2, a3, a4, a5, a6, a7 ))
  550. #define ValidateParameters8( m, a1, a2, a3, a4, a5, a6, a7, a8 ) \
  551. ValidateParms( ( m, a1, a2, a3, a4, a5, a6, a7, a8 ))
  552. #define ValidateParameters9( m, a1, a2, a3, a4, a5, a6, a7, a8, a9 ) \
  553. ValidateParms( ( m, a1, a2, a3, a4, a5, a6, a7, a8, a9 ))
  554. #define ValidateParameters10( m, a1, a2, a3, a4, a5, a6, a7, a8, a9, a10 ) \
  555. ValidateParms( ( m, a1, a2, a3, a4, a5, a6, a7, a8, a9, a10 ))
  556. #define ValidateParameters11( m, a1, a2, a3, a4, a5, a6, a7, a8, a9, a10, a11 ) \
  557. ValidateParms( ( m, a1, a2, a3, a4, a5, a6, a7, a8, a9, a10, a11 ))
  558. #define ValidateParameters12( m, a1, a2, a3, a4, a5, a6, a7, a8, a9, a10, a11, a12 ) \
  559. ValidateParms( ( m, a1, a2, a3, a4, a5, a6, a7, a8, a9, a10, a11, a12 ))
  560. #define ValidateParameters13( m, a1, a2, a3, a4, a5, a6, a7, a8, a9, a10, a11, a12, a13 ) \
  561. ValidateParms( ( m, a1, a2, a3, a4, a5, a6, a7, a8, a9, a10, a11, a12, a13 ))
  562. #define ValidateParameters14( m, a1, a2, a3, a4, a5, a6, a7, a8, a9, a10, a11, a12, a13, a14 ) \
  563. ValidateParms( ( m, a1, a2, a3, a4, a5, a6, a7, a8, a9, a10, a11, a12, a13, a14 ))
  564. #define ValidateParameters15( m, a1, a2, a3, a4, a5, a6, a7, a8, a9, a10, a11, a12, a13, a14, a15 ) \
  565. ValidateParms( ( m, a1, a2, a3, a4, a5, a6, a7, a8, a9, a10, a11, a12, a13, a14, a15 ))
  566. #define ValidateParameters16( m, a1, a2, a3, a4, a5, a6, a7, a8, a9, a10, a11, a12, a13, a14, a15, a16 ) \
  567. ValidateParms( ( m, a1, a2, a3, a4, a5, a6, a7, a8, a9, a10, a11, a12, a13, a14, a15, a16 ))
  568. #define UlValidateParameters1( m, a1 ) \
  569. UlValidateParms( ( m, a1 ) )
  570. #define UlValidateParameters2( m, a1, a2 ) \
  571. UlValidateParms( ( m, a1, a2 ))
  572. #define UlValidateParameters3( m, a1, a2, a3 ) \
  573. UlValidateParms( ( m, a1, a2, a3 ))
  574. #define UlValidateParameters4( m, a1, a2, a3, a4 ) \
  575. UlValidateParms( ( m, a1, a2, a3, a4 ))
  576. #define UlValidateParameters5( m, a1, a2, a3, a4, a5 ) \
  577. UlValidateParms( ( m, a1, a2, a3, a4, a5 ))
  578. #define UlValidateParameters6( m, a1, a2, a3, a4, a5, a6 ) \
  579. UlValidateParms( ( m, a1, a2, a3, a4, a5, a6 ))
  580. #define UlValidateParameters7( m, a1, a2, a3, a4, a5, a6, a7 ) \
  581. UlValidateParms( ( m, a1, a2, a3, a4, a5, a6, a7 ))
  582. #define UlValidateParameters8( m, a1, a2, a3, a4, a5, a6, a7, a8 ) \
  583. UlValidateParms( ( m, a1, a2, a3, a4, a5, a6, a7, a8 ))
  584. #define UlValidateParameters9( m, a1, a2, a3, a4, a5, a6, a7, a8, a9 ) \
  585. UlValidateParms( ( m, a1, a2, a3, a4, a5, a6, a7, a8, a9 ))
  586. #define UlValidateParameters10( m, a1, a2, a3, a4, a5, a6, a7, a8, a9, a10 ) \
  587. UlValidateParms( ( m, a1, a2, a3, a4, a5, a6, a7, a8, a9, a10 ))
  588. #define UlValidateParameters11( m, a1, a2, a3, a4, a5, a6, a7, a8, a9, a10, a11 ) \
  589. UlValidateParms( ( m, a1, a2, a3, a4, a5, a6, a7, a8, a9, a10, a11 ))
  590. #define UlValidateParameters12( m, a1, a2, a3, a4, a5, a6, a7, a8, a9, a10, a11, a12 ) \
  591. UlValidateParms( ( m, a1, a2, a3, a4, a5, a6, a7, a8, a9, a10, a11, a12 ))
  592. #define UlValidateParameters13( m, a1, a2, a3, a4, a5, a6, a7, a8, a9, a10, a11, a12, a13 ) \
  593. UlValidateParms( ( m, a1, a2, a3, a4, a5, a6, a7, a8, a9, a10, a11, a12, a13 ))
  594. #define UlValidateParameters14( m, a1, a2, a3, a4, a5, a6, a7, a8, a9, a10, a11, a12, a13, a14 ) \
  595. UlValidateParms( ( m, a1, a2, a3, a4, a5, a6, a7, a8, a9, a10, a11, a12, a13, a14 ))
  596. #define UlValidateParameters15( m, a1, a2, a3, a4, a5, a6, a7, a8, a9, a10, a11, a12, a13, a14, a15 ) \
  597. UlValidateParms( ( m, a1, a2, a3, a4, a5, a6, a7, a8, a9, a10, a11, a12, a13, a14, a15 ))
  598. #define UlValidateParameters16( m, a1, a2, a3, a4, a5, a6, a7, a8, a9, a10, a11, a12, a13, a14, a15, a16 ) \
  599. UlValidateParms( ( m, a1, a2, a3, a4, a5, a6, a7, a8, a9, a10, a11, a12, a13, a14, a15, a16 ))
  600. #define CheckParameters1( m, a1 ) \
  601. CheckParms( ( m, a1 ) )
  602. #define CheckParameters2( m, a1, a2 ) \
  603. CheckParms( ( m, a1, a2 ))
  604. #define CheckParameters3( m, a1, a2, a3 ) \
  605. CheckParms( ( m, a1, a2, a3 ))
  606. #define CheckParameters4( m, a1, a2, a3, a4 ) \
  607. CheckParms( ( m, a1, a2, a3, a4 ))
  608. #define CheckParameters5( m, a1, a2, a3, a4, a5 ) \
  609. CheckParms( ( m, a1, a2, a3, a4, a5 ))
  610. #define CheckParameters6( m, a1, a2, a3, a4, a5, a6 ) \
  611. CheckParms( ( m, a1, a2, a3, a4, a5, a6 ))
  612. #define CheckParameters7( m, a1, a2, a3, a4, a5, a6, a7 ) \
  613. CheckParms( ( m, a1, a2, a3, a4, a5, a6, a7 ))
  614. #define CheckParameters8( m, a1, a2, a3, a4, a5, a6, a7, a8 ) \
  615. CheckParms( ( m, a1, a2, a3, a4, a5, a6, a7, a8 ))
  616. #define CheckParameters9( m, a1, a2, a3, a4, a5, a6, a7, a8, a9 ) \
  617. CheckParms( ( m, a1, a2, a3, a4, a5, a6, a7, a8, a9 ))
  618. #define CheckParameters10( m, a1, a2, a3, a4, a5, a6, a7, a8, a9, a10 ) \
  619. CheckParms( ( m, a1, a2, a3, a4, a5, a6, a7, a8, a9, a10 ))
  620. #define CheckParameters11( m, a1, a2, a3, a4, a5, a6, a7, a8, a9, a10, a11 ) \
  621. CheckParms( ( m, a1, a2, a3, a4, a5, a6, a7, a8, a9, a10, a11 ))
  622. #define CheckParameters12( m, a1, a2, a3, a4, a5, a6, a7, a8, a9, a10, a11, a12 ) \
  623. CheckParms( ( m, a1, a2, a3, a4, a5, a6, a7, a8, a9, a10, a11, a12 ))
  624. #define CheckParameters13( m, a1, a2, a3, a4, a5, a6, a7, a8, a9, a10, a11, a12, a13 ) \
  625. CheckParms( ( m, a1, a2, a3, a4, a5, a6, a7, a8, a9, a10, a11, a12, a13 ))
  626. #define CheckParameters14( m, a1, a2, a3, a4, a5, a6, a7, a8, a9, a10, a11, a12, a13, a14 ) \
  627. CheckParms( ( m, a1, a2, a3, a4, a5, a6, a7, a8, a9, a10, a11, a12, a13, a14 ))
  628. #define CheckParameters15( m, a1, a2, a3, a4, a5, a6, a7, a8, a9, a10, a11, a12, a13, a14, a15 ) \
  629. CheckParms( ( m, a1, a2, a3, a4, a5, a6, a7, a8, a9, a10, a11, a12, a13, a14, a15 ))
  630. #define CheckParameters16( m, a1, a2, a3, a4, a5, a6, a7, a8, a9, a10, a11, a12, a13, a14, a15, a16 ) \
  631. CheckParms( ( m, a1, a2, a3, a4, a5, a6, a7, a8, a9, a10, a11, a12, a13, a14, a15, a16 ))
  632. #endif /* _X86_ || WIN16 */
  633. /*
  634. * M A P I P A R A M E T E R V A L I D A T I O N M A C R O S
  635. */
  636. /* IUnknown */
  637. #define Validate_IUnknown_QueryInterface( a1, a2, a3 ) \
  638. ValidateParameters3( IUnknown_QueryInterface, a1, a2, a3 )
  639. #define UlValidate_IUnknown_QueryInterface( a1, a2, a3 ) \
  640. UlValidateParameters3( IUnknown_QueryInterface, a1, a2, a3 )
  641. #define CheckParameters_IUnknown_QueryInterface( a1, a2, a3 ) \
  642. CheckParameters3( IUnknown_QueryInterface, a1, a2, a3 )
  643. #define Validate_IUnknown_AddRef( a1 ) \
  644. ValidateParameters1( IUnknown_AddRef, a1 )
  645. #define UlValidate_IUnknown_AddRef( a1 ) \
  646. UlValidateParameters1( IUnknown_AddRef, a1 )
  647. #define CheckParameters_IUnknown_AddRef( a1 ) \
  648. CheckParameters1( IUnknown_AddRef, a1 )
  649. #define Validate_IUnknown_Release( a1 ) \
  650. ValidateParameters1( IUnknown_Release, a1 )
  651. #define UlValidate_IUnknown_Release( a1 ) \
  652. UlValidateParameters1( IUnknown_Release, a1 )
  653. #define CheckParameters_IUnknown_Release( a1 ) \
  654. CheckParameters1( IUnknown_Release, a1 )
  655. /* IMAPIProp */
  656. #define Validate_IMAPIProp_GetLastError( a1, a2, a3, a4 ) \
  657. ValidateParameters4( IMAPIProp_GetLastError, a1, a2, a3, a4 )
  658. #define UlValidate_IMAPIProp_GetLastError( a1, a2, a3, a4 ) \
  659. UlValidateParameters4( IMAPIProp_GetLastError, a1, a2, a3, a4 )
  660. #define CheckParameters_IMAPIProp_GetLastError( a1, a2, a3, a4 ) \
  661. CheckParameters4( IMAPIProp_GetLastError, a1, a2, a3, a4 )
  662. #define Validate_IMAPIProp_SaveChanges( a1, a2 ) \
  663. ValidateParameters2( IMAPIProp_SaveChanges, a1, a2 )
  664. #define UlValidate_IMAPIProp_SaveChanges( a1, a2 ) \
  665. UlValidateParameters2( IMAPIProp_SaveChanges, a1, a2 )
  666. #define CheckParameters_IMAPIProp_SaveChanges( a1, a2 ) \
  667. CheckParameters2( IMAPIProp_SaveChanges, a1, a2 )
  668. #define Validate_IMAPIProp_GetProps( a1, a2, a3, a4, a5 ) \
  669. ValidateParameters5( IMAPIProp_GetProps, a1, a2, a3, a4, a5 )
  670. #define UlValidate_IMAPIProp_GetProps( a1, a2, a3, a4, a5 ) \
  671. UlValidateParameters5( IMAPIProp_GetProps, a1, a2, a3, a4, a5 )
  672. #define CheckParameters_IMAPIProp_GetProps( a1, a2, a3, a4, a5 ) \
  673. CheckParameters5( IMAPIProp_GetProps, a1, a2, a3, a4, a5 )
  674. #define Validate_IMAPIProp_GetPropList( a1, a2, a3 ) \
  675. ValidateParameters3( IMAPIProp_GetPropList, a1, a2, a3 )
  676. #define UlValidate_IMAPIProp_GetPropList( a1, a2, a3 ) \
  677. UlValidateParameters3( IMAPIProp_GetPropList, a1, a2, a3 )
  678. #define CheckParameters_IMAPIProp_GetPropList( a1, a2, a3 ) \
  679. CheckParameters3( IMAPIProp_GetPropList, a1, a2, a3 )
  680. #define Validate_IMAPIProp_OpenProperty( a1, a2, a3, a4, a5, a6 ) \
  681. ValidateParameters6( IMAPIProp_OpenProperty, a1, a2, a3, a4, a5, a6 )
  682. #define UlValidate_IMAPIProp_OpenProperty( a1, a2, a3, a4, a5, a6 ) \
  683. UlValidateParameters6( IMAPIProp_OpenProperty, a1, a2, a3, a4, a5, a6 )
  684. #define CheckParameters_IMAPIProp_OpenProperty( a1, a2, a3, a4, a5, a6 ) \
  685. CheckParameters6( IMAPIProp_OpenProperty, a1, a2, a3, a4, a5, a6 )
  686. #define Validate_IMAPIProp_SetProps( a1, a2, a3, a4 ) \
  687. ValidateParameters4( IMAPIProp_SetProps, a1, a2, a3, a4 )
  688. #define UlValidate_IMAPIProp_SetProps( a1, a2, a3, a4 ) \
  689. UlValidateParameters4( IMAPIProp_SetProps, a1, a2, a3, a4 )
  690. #define CheckParameters_IMAPIProp_SetProps( a1, a2, a3, a4 ) \
  691. CheckParameters4( IMAPIProp_SetProps, a1, a2, a3, a4 )
  692. #define Validate_IMAPIProp_DeleteProps( a1, a2, a3 ) \
  693. ValidateParameters3( IMAPIProp_DeleteProps, a1, a2, a3 )
  694. #define UlValidate_IMAPIProp_DeleteProps( a1, a2, a3 ) \
  695. UlValidateParameters3( IMAPIProp_DeleteProps, a1, a2, a3 )
  696. #define CheckParameters_IMAPIProp_DeleteProps( a1, a2, a3 ) \
  697. CheckParameters3( IMAPIProp_DeleteProps, a1, a2, a3 )
  698. #define Validate_IMAPIProp_CopyTo( a1, a2, a3, a4, a5, a6, a7, a8, a9, a10 ) \
  699. ValidateParameters10( IMAPIProp_CopyTo, a1, a2, a3, a4, a5, a6, a7, a8, a9, a10 )
  700. #define UlValidate_IMAPIProp_CopyTo( a1, a2, a3, a4, a5, a6, a7, a8, a9, a10 ) \
  701. UlValidateParameters10( IMAPIProp_CopyTo, a1, a2, a3, a4, a5, a6, a7, a8, a9, a10 )
  702. #define CheckParameters_IMAPIProp_CopyTo( a1, a2, a3, a4, a5, a6, a7, a8, a9, a10 ) \
  703. CheckParameters10( IMAPIProp_CopyTo, a1, a2, a3, a4, a5, a6, a7, a8, a9, a10 )
  704. #define Validate_IMAPIProp_CopyProps( a1, a2, a3, a4, a5, a6, a7, a8 ) \
  705. ValidateParameters8( IMAPIProp_CopyProps, a1, a2, a3, a4, a5, a6, a7, a8 )
  706. #define UlValidate_IMAPIProp_CopyProps( a1, a2, a3, a4, a5, a6, a7, a8 ) \
  707. UlValidateParameters8( IMAPIProp_CopyProps, a1, a2, a3, a4, a5, a6, a7, a8 )
  708. #define CheckParameters_IMAPIProp_CopyProps( a1, a2, a3, a4, a5, a6, a7, a8 ) \
  709. CheckParameters8( IMAPIProp_CopyProps, a1, a2, a3, a4, a5, a6, a7, a8 )
  710. #define Validate_IMAPIProp_GetNamesFromIDs( a1, a2, a3, a4, a5, a6 ) \
  711. ValidateParameters6( IMAPIProp_GetNamesFromIDs, a1, a2, a3, a4, a5, a6 )
  712. #define UlValidate_IMAPIProp_GetNamesFromIDs( a1, a2, a3, a4, a5, a6 ) \
  713. UlValidateParameters6( IMAPIProp_GetNamesFromIDs, a1, a2, a3, a4, a5, a6 )
  714. #define CheckParameters_IMAPIProp_GetNamesFromIDs( a1, a2, a3, a4, a5, a6 ) \
  715. CheckParameters6( IMAPIProp_GetNamesFromIDs, a1, a2, a3, a4, a5, a6 )
  716. #define Validate_IMAPIProp_GetIDsFromNames( a1, a2, a3, a4, a5 ) \
  717. ValidateParameters5( IMAPIProp_GetIDsFromNames, a1, a2, a3, a4, a5 )
  718. #define UlValidate_IMAPIProp_GetIDsFromNames( a1, a2, a3, a4, a5 ) \
  719. UlValidateParameters5( IMAPIProp_GetIDsFromNames, a1, a2, a3, a4, a5 )
  720. #define CheckParameters_IMAPIProp_GetIDsFromNames( a1, a2, a3, a4, a5 ) \
  721. CheckParameters5( IMAPIProp_GetIDsFromNames, a1, a2, a3, a4, a5 )
  722. /* IMAPITable */
  723. #define Validate_IMAPITable_GetLastError( a1, a2, a3, a4 ) \
  724. ValidateParameters4( IMAPITable_GetLastError, a1, a2, a3, a4 )
  725. #define UlValidate_IMAPITable_GetLastError( a1, a2, a3, a4 ) \
  726. UlValidateParameters4( IMAPITable_GetLastError, a1, a2, a3, a4 )
  727. #define CheckParameters_IMAPITable_GetLastError( a1, a2, a3, a4 ) \
  728. CheckParameters4( IMAPITable_GetLastError, a1, a2, a3, a4 )
  729. #define Validate_IMAPITable_Advise( a1, a2, a3, a4 ) \
  730. ValidateParameters4( IMAPITable_Advise, a1, a2, a3, a4 )
  731. #define UlValidate_IMAPITable_Advise( a1, a2, a3, a4 ) \
  732. UlValidateParameters4( IMAPITable_Advise, a1, a2, a3, a4 )
  733. #define CheckParameters_IMAPITable_Advise( a1, a2, a3, a4 ) \
  734. CheckParameters4( IMAPITable_Advise, a1, a2, a3, a4 )
  735. #define Validate_IMAPITable_Unadvise( a1, a2 ) \
  736. ValidateParameters2( IMAPITable_Unadvise, a1, a2 )
  737. #define UlValidate_IMAPITable_Unadvise( a1, a2 ) \
  738. UlValidateParameters2( IMAPITable_Unadvise, a1, a2 )
  739. #define CheckParameters_IMAPITable_Unadvise( a1, a2 ) \
  740. CheckParameters2( IMAPITable_Unadvise, a1, a2 )
  741. #define Validate_IMAPITable_GetStatus( a1, a2, a3 ) \
  742. ValidateParameters3( IMAPITable_GetStatus, a1, a2, a3 )
  743. #define UlValidate_IMAPITable_GetStatus( a1, a2, a3 ) \
  744. UlValidateParameters3( IMAPITable_GetStatus, a1, a2, a3 )
  745. #define CheckParameters_IMAPITable_GetStatus( a1, a2, a3 ) \
  746. CheckParameters3( IMAPITable_GetStatus, a1, a2, a3 )
  747. #define Validate_IMAPITable_SetColumns( a1, a2, a3 ) \
  748. ValidateParameters3( IMAPITable_SetColumns, a1, a2, a3 )
  749. #define UlValidate_IMAPITable_SetColumns( a1, a2, a3 ) \
  750. UlValidateParameters3( IMAPITable_SetColumns, a1, a2, a3 )
  751. #define CheckParameters_IMAPITable_SetColumns( a1, a2, a3 ) \
  752. CheckParameters3( IMAPITable_SetColumns, a1, a2, a3 )
  753. #define Validate_IMAPITable_QueryColumns( a1, a2, a3 ) \
  754. ValidateParameters3( IMAPITable_QueryColumns, a1, a2, a3 )
  755. #define UlValidate_IMAPITable_QueryColumns( a1, a2, a3 ) \
  756. UlValidateParameters3( IMAPITable_QueryColumns, a1, a2, a3 )
  757. #define CheckParameters_IMAPITable_QueryColumns( a1, a2, a3 ) \
  758. CheckParameters3( IMAPITable_QueryColumns, a1, a2, a3 )
  759. #define Validate_IMAPITable_GetRowCount( a1, a2, a3 ) \
  760. ValidateParameters3( IMAPITable_GetRowCount, a1, a2, a3 )
  761. #define UlValidate_IMAPITable_GetRowCount( a1, a2, a3 ) \
  762. UlValidateParameters3( IMAPITable_GetRowCount, a1, a2, a3 )
  763. #define CheckParameters_IMAPITable_GetRowCount( a1, a2, a3 ) \
  764. CheckParameters3( IMAPITable_GetRowCount, a1, a2, a3 )
  765. #define Validate_IMAPITable_SeekRow( a1, a2, a3, a4 ) \
  766. ValidateParameters4( IMAPITable_SeekRow, a1, a2, a3, a4 )
  767. #define UlValidate_IMAPITable_SeekRow( a1, a2, a3, a4 ) \
  768. UlValidateParameters4( IMAPITable_SeekRow, a1, a2, a3, a4 )
  769. #define CheckParameters_IMAPITable_SeekRow( a1, a2, a3, a4 ) \
  770. CheckParameters4( IMAPITable_SeekRow, a1, a2, a3, a4 )
  771. #define Validate_IMAPITable_SeekRowApprox( a1, a2, a3 ) \
  772. ValidateParameters3( IMAPITable_SeekRowApprox, a1, a2, a3 )
  773. #define UlValidate_IMAPITable_SeekRowApprox( a1, a2, a3 ) \
  774. UlValidateParameters3( IMAPITable_SeekRowApprox, a1, a2, a3 )
  775. #define CheckParameters_IMAPITable_SeekRowApprox( a1, a2, a3 ) \
  776. CheckParameters3( IMAPITable_SeekRowApprox, a1, a2, a3 )
  777. #define Validate_IMAPITable_QueryPosition( a1, a2, a3, a4 ) \
  778. ValidateParameters4( IMAPITable_QueryPosition, a1, a2, a3, a4 )
  779. #define UlValidate_IMAPITable_QueryPosition( a1, a2, a3, a4 ) \
  780. UlValidateParameters4( IMAPITable_QueryPosition, a1, a2, a3, a4 )
  781. #define CheckParameters_IMAPITable_QueryPosition( a1, a2, a3, a4 ) \
  782. CheckParameters4( IMAPITable_QueryPosition, a1, a2, a3, a4 )
  783. #define Validate_IMAPITable_FindRow( a1, a2, a3, a4 ) \
  784. ValidateParameters4( IMAPITable_FindRow, a1, a2, a3, a4 )
  785. #define UlValidate_IMAPITable_FindRow( a1, a2, a3, a4 ) \
  786. UlValidateParameters4( IMAPITable_FindRow, a1, a2, a3, a4 )
  787. #define CheckParameters_IMAPITable_FindRow( a1, a2, a3, a4 ) \
  788. CheckParameters4( IMAPITable_FindRow, a1, a2, a3, a4 )
  789. #define Validate_IMAPITable_Restrict( a1, a2, a3 ) \
  790. ValidateParameters3( IMAPITable_Restrict, a1, a2, a3 )
  791. #define UlValidate_IMAPITable_Restrict( a1, a2, a3 ) \
  792. UlValidateParameters3( IMAPITable_Restrict, a1, a2, a3 )
  793. #define CheckParameters_IMAPITable_Restrict( a1, a2, a3 ) \
  794. CheckParameters3( IMAPITable_Restrict, a1, a2, a3 )
  795. #define Validate_IMAPITable_CreateBookmark( a1, a2 ) \
  796. ValidateParameters2( IMAPITable_CreateBookmark, a1, a2 )
  797. #define UlValidate_IMAPITable_CreateBookmark( a1, a2 ) \
  798. UlValidateParameters2( IMAPITable_CreateBookmark, a1, a2 )
  799. #define CheckParameters_IMAPITable_CreateBookmark( a1, a2 ) \
  800. CheckParameters2( IMAPITable_CreateBookmark, a1, a2 )
  801. #define Validate_IMAPITable_FreeBookmark( a1, a2 ) \
  802. ValidateParameters2( IMAPITable_FreeBookmark, a1, a2 )
  803. #define UlValidate_IMAPITable_FreeBookmark( a1, a2 ) \
  804. UlValidateParameters2( IMAPITable_FreeBookmark, a1, a2 )
  805. #define CheckParameters_IMAPITable_FreeBookmark( a1, a2 ) \
  806. CheckParameters2( IMAPITable_FreeBookmark, a1, a2 )
  807. #define Validate_IMAPITable_SortTable( a1, a2, a3 ) \
  808. ValidateParameters3( IMAPITable_SortTable, a1, a2, a3 )
  809. #define UlValidate_IMAPITable_SortTable( a1, a2, a3 ) \
  810. UlValidateParameters3( IMAPITable_SortTable, a1, a2, a3 )
  811. #define CheckParameters_IMAPITable_SortTable( a1, a2, a3 ) \
  812. CheckParameters3( IMAPITable_SortTable, a1, a2, a3 )
  813. #define Validate_IMAPITable_QuerySortOrder( a1, a2 ) \
  814. ValidateParameters2( IMAPITable_QuerySortOrder, a1, a2 )
  815. #define UlValidate_IMAPITable_QuerySortOrder( a1, a2 ) \
  816. UlValidateParameters2( IMAPITable_QuerySortOrder, a1, a2 )
  817. #define CheckParameters_IMAPITable_QuerySortOrder( a1, a2 ) \
  818. CheckParameters2( IMAPITable_QuerySortOrder, a1, a2 )
  819. #define Validate_IMAPITable_QueryRows( a1, a2, a3, a4 ) \
  820. ValidateParameters4( IMAPITable_QueryRows, a1, a2, a3, a4 )
  821. #define UlValidate_IMAPITable_QueryRows( a1, a2, a3, a4 ) \
  822. UlValidateParameters4( IMAPITable_QueryRows, a1, a2, a3, a4 )
  823. #define CheckParameters_IMAPITable_QueryRows( a1, a2, a3, a4 ) \
  824. CheckParameters4( IMAPITable_QueryRows, a1, a2, a3, a4 )
  825. #define Validate_IMAPITable_Abort( a1 ) \
  826. ValidateParameters1( IMAPITable_Abort, a1 )
  827. #define UlValidate_IMAPITable_Abort( a1 ) \
  828. UlValidateParameters1( IMAPITable_Abort, a1 )
  829. #define CheckParameters_IMAPITable_Abort( a1 ) \
  830. CheckParameters1( IMAPITable_Abort, a1 )
  831. #define Validate_IMAPITable_ExpandRow( a1, a2, a3, a4, a5, a6, a7 ) \
  832. ValidateParameters7( IMAPITable_ExpandRow, a1, a2, a3, a4, a5, a6, a7 )
  833. #define UlValidate_IMAPITable_ExpandRow( a1, a2, a3, a4, a5, a6, a7 ) \
  834. UlValidateParameters7( IMAPITable_ExpandRow, a1, a2, a3, a4, a5, a6, a7 )
  835. #define CheckParameters_IMAPITable_ExpandRow( a1, a2, a3, a4, a5, a6, a7 ) \
  836. CheckParameters7( IMAPITable_ExpandRow, a1, a2, a3, a4, a5, a6, a7 )
  837. #define Validate_IMAPITable_CollapseRow( a1, a2, a3, a4, a5 ) \
  838. ValidateParameters5( IMAPITable_CollapseRow, a1, a2, a3, a4, a5 )
  839. #define UlValidate_IMAPITable_CollapseRow( a1, a2, a3, a4, a5 ) \
  840. UlValidateParameters5( IMAPITable_CollapseRow, a1, a2, a3, a4, a5 )
  841. #define CheckParameters_IMAPITable_CollapseRow( a1, a2, a3, a4, a5 ) \
  842. CheckParameters5( IMAPITable_CollapseRow, a1, a2, a3, a4, a5 )
  843. #define Validate_IMAPITable_WaitForCompletion( a1, a2, a3, a4 ) \
  844. ValidateParameters4( IMAPITable_WaitForCompletion, a1, a2, a3, a4 )
  845. #define UlValidate_IMAPITable_WaitForCompletion( a1, a2, a3, a4 ) \
  846. UlValidateParameters4( IMAPITable_WaitForCompletion, a1, a2, a3, a4 )
  847. #define CheckParameters_IMAPITable_WaitForCompletion( a1, a2, a3, a4 ) \
  848. CheckParameters4( IMAPITable_WaitForCompletion, a1, a2, a3, a4 )
  849. #define Validate_IMAPITable_GetCollapseState( a1, a2, a3, a4, a5, a6 ) \
  850. ValidateParameters6( IMAPITable_GetCollapseState, a1, a2, a3, a4, a5, a6 )
  851. #define UlValidate_IMAPITable_GetCollapseState( a1, a2, a3, a4, a5, a6 ) \
  852. UlValidateParameters6( IMAPITable_GetCollapseState, a1, a2, a3, a4, a5, a6 )
  853. #define CheckParameters_IMAPITable_GetCollapseState( a1, a2, a3, a4, a5, a6 ) \
  854. CheckParameters6( IMAPITable_GetCollapseState, a1, a2, a3, a4, a5, a6 )
  855. #define Validate_IMAPITable_SetCollapseState( a1, a2, a3, a4, a5 ) \
  856. ValidateParameters5( IMAPITable_SetCollapseState, a1, a2, a3, a4, a5 )
  857. #define UlValidate_IMAPITable_SetCollapseState( a1, a2, a3, a4, a5 ) \
  858. UlValidateParameters5( IMAPITable_SetCollapseState, a1, a2, a3, a4, a5 )
  859. #define CheckParameters_IMAPITable_SetCollapseState( a1, a2, a3, a4, a5 ) \
  860. CheckParameters5( IMAPITable_SetCollapseState, a1, a2, a3, a4, a5 )
  861. /* IMAPIContainer */
  862. #define Validate_IMAPIContainer_GetContentsTable( a1, a2, a3 ) \
  863. ValidateParameters3( IMAPIContainer_GetContentsTable, a1, a2, a3 )
  864. #define UlValidate_IMAPIContainer_GetContentsTable( a1, a2, a3 ) \
  865. UlValidateParameters3( IMAPIContainer_GetContentsTable, a1, a2, a3 )
  866. #define CheckParameters_IMAPIContainer_GetContentsTable( a1, a2, a3 ) \
  867. CheckParameters3( IMAPIContainer_GetContentsTable, a1, a2, a3 )
  868. #define Validate_IMAPIContainer_GetHierarchyTable( a1, a2, a3 ) \
  869. ValidateParameters3( IMAPIContainer_GetHierarchyTable, a1, a2, a3 )
  870. #define UlValidate_IMAPIContainer_GetHierarchyTable( a1, a2, a3 ) \
  871. UlValidateParameters3( IMAPIContainer_GetHierarchyTable, a1, a2, a3 )
  872. #define CheckParameters_IMAPIContainer_GetHierarchyTable( a1, a2, a3 ) \
  873. CheckParameters3( IMAPIContainer_GetHierarchyTable, a1, a2, a3 )
  874. #define Validate_IMAPIContainer_OpenEntry( a1, a2, a3, a4, a5, a6, a7 ) \
  875. ValidateParameters7( IMAPIContainer_OpenEntry, a1, a2, a3, a4, a5, a6, a7 )
  876. #define UlValidate_IMAPIContainer_OpenEntry( a1, a2, a3, a4, a5, a6, a7 ) \
  877. UlValidateParameters7( IMAPIContainer_OpenEntry, a1, a2, a3, a4, a5, a6, a7 )
  878. #define CheckParameters_IMAPIContainer_OpenEntry( a1, a2, a3, a4, a5, a6, a7 ) \
  879. CheckParameters7( IMAPIContainer_OpenEntry, a1, a2, a3, a4, a5, a6, a7 )
  880. #define Validate_IMAPIContainer_SetSearchCriteria( a1, a2, a3, a4 ) \
  881. ValidateParameters4( IMAPIContainer_SetSearchCriteria, a1, a2, a3, a4 )
  882. #define UlValidate_IMAPIContainer_SetSearchCriteria( a1, a2, a3, a4 ) \
  883. UlValidateParameters4( IMAPIContainer_SetSearchCriteria, a1, a2, a3, a4 )
  884. #define CheckParameters_IMAPIContainer_SetSearchCriteria( a1, a2, a3, a4 ) \
  885. CheckParameters4( IMAPIContainer_SetSearchCriteria, a1, a2, a3, a4 )
  886. #define Validate_IMAPIContainer_GetSearchCriteria( a1, a2, a3, a4, a5 ) \
  887. ValidateParameters5( IMAPIContainer_GetSearchCriteria, a1, a2, a3, a4, a5 )
  888. #define UlValidate_IMAPIContainer_GetSearchCriteria( a1, a2, a3, a4, a5 ) \
  889. UlValidateParameters5( IMAPIContainer_GetSearchCriteria, a1, a2, a3, a4, a5 )
  890. #define CheckParameters_IMAPIContainer_GetSearchCriteria( a1, a2, a3, a4, a5 ) \
  891. CheckParameters5( IMAPIContainer_GetSearchCriteria, a1, a2, a3, a4, a5 )
  892. /* IABContainer */
  893. #define Validate_IABContainer_CreateEntry( a1, a2, a3, a4, a5 ) \
  894. ValidateParameters5( IABContainer_CreateEntry, a1, a2, a3, a4, a5 )
  895. #define UlValidate_IABContainer_CreateEntry( a1, a2, a3, a4, a5 ) \
  896. UlValidateParameters5( IABContainer_CreateEntry, a1, a2, a3, a4, a5 )
  897. #define CheckParameters_IABContainer_CreateEntry( a1, a2, a3, a4, a5 ) \
  898. CheckParameters5( IABContainer_CreateEntry, a1, a2, a3, a4, a5 )
  899. #define Validate_IABContainer_CopyEntries( a1, a2, a3, a4, a5 ) \
  900. ValidateParameters5( IABContainer_CopyEntries, a1, a2, a3, a4, a5 )
  901. #define UlValidate_IABContainer_CopyEntries( a1, a2, a3, a4, a5 ) \
  902. UlValidateParameters5( IABContainer_CopyEntries, a1, a2, a3, a4, a5 )
  903. #define CheckParameters_IABContainer_CopyEntries( a1, a2, a3, a4, a5 ) \
  904. CheckParameters5( IABContainer_CopyEntries, a1, a2, a3, a4, a5 )
  905. #define Validate_IABContainer_DeleteEntries( a1, a2, a3 ) \
  906. ValidateParameters3( IABContainer_DeleteEntries, a1, a2, a3 )
  907. #define UlValidate_IABContainer_DeleteEntries( a1, a2, a3 ) \
  908. UlValidateParameters3( IABContainer_DeleteEntries, a1, a2, a3 )
  909. #define CheckParameters_IABContainer_DeleteEntries( a1, a2, a3 ) \
  910. CheckParameters3( IABContainer_DeleteEntries, a1, a2, a3 )
  911. #define Validate_IABContainer_ResolveNames( a1, a2, a3, a4, a5 ) \
  912. ValidateParameters5( IABContainer_ResolveNames, a1, a2, a3, a4, a5 )
  913. #define UlValidate_IABContainer_ResolveNames( a1, a2, a3, a4, a5 ) \
  914. UlValidateParameters5( IABContainer_ResolveNames, a1, a2, a3, a4, a5 )
  915. #define CheckParameters_IABContainer_ResolveNames( a1, a2, a3, a4, a5 ) \
  916. CheckParameters5( IABContainer_ResolveNames, a1, a2, a3, a4, a5 )
  917. /* IDistList */
  918. #define Validate_IDistList_CreateEntry( a1, a2, a3, a4, a5 ) \
  919. ValidateParameters5( IDistList_CreateEntry, a1, a2, a3, a4, a5 )
  920. #define UlValidate_IDistList_CreateEntry( a1, a2, a3, a4, a5 ) \
  921. UlValidateParameters5( IDistList_CreateEntry, a1, a2, a3, a4, a5 )
  922. #define CheckParameters_IDistList_CreateEntry( a1, a2, a3, a4, a5 ) \
  923. CheckParameters5( IDistList_CreateEntry, a1, a2, a3, a4, a5 )
  924. #define Validate_IDistList_CopyEntries( a1, a2, a3, a4, a5 ) \
  925. ValidateParameters5( IDistList_CopyEntries, a1, a2, a3, a4, a5 )
  926. #define UlValidate_IDistList_CopyEntries( a1, a2, a3, a4, a5 ) \
  927. UlValidateParameters5( IDistList_CopyEntries, a1, a2, a3, a4, a5 )
  928. #define CheckParameters_IDistList_CopyEntries( a1, a2, a3, a4, a5 ) \
  929. CheckParameters5( IDistList_CopyEntries, a1, a2, a3, a4, a5 )
  930. #define Validate_IDistList_DeleteEntries( a1, a2, a3 ) \
  931. ValidateParameters3( IDistList_DeleteEntries, a1, a2, a3 )
  932. #define UlValidate_IDistList_DeleteEntries( a1, a2, a3 ) \
  933. UlValidateParameters3( IDistList_DeleteEntries, a1, a2, a3 )
  934. #define CheckParameters_IDistList_DeleteEntries( a1, a2, a3 ) \
  935. CheckParameters3( IDistList_DeleteEntries, a1, a2, a3 )
  936. #define Validate_IDistList_ResolveNames( a1, a2, a3, a4, a5 ) \
  937. ValidateParameters5( IDistList_ResolveNames, a1, a2, a3, a4, a5 )
  938. #define UlValidate_IDistList_ResolveNames( a1, a2, a3, a4, a5 ) \
  939. UlValidateParameters5( IDistList_ResolveNames, a1, a2, a3, a4, a5 )
  940. #define CheckParameters_IDistList_ResolveNames( a1, a2, a3, a4, a5 ) \
  941. CheckParameters5( IDistList_ResolveNames, a1, a2, a3, a4, a5 )
  942. /* IMAPIFolder */
  943. #define Validate_IMAPIFolder_CreateMessage( a1, a2, a3, a4 ) \
  944. ValidateParameters4( IMAPIFolder_CreateMessage, a1, a2, a3, a4 )
  945. #define UlValidate_IMAPIFolder_CreateMessage( a1, a2, a3, a4 ) \
  946. UlValidateParameters4( IMAPIFolder_CreateMessage, a1, a2, a3, a4 )
  947. #define CheckParameters_IMAPIFolder_CreateMessage( a1, a2, a3, a4 ) \
  948. CheckParameters4( IMAPIFolder_CreateMessage, a1, a2, a3, a4 )
  949. #define Validate_IMAPIFolder_CopyMessages( a1, a2, a3, a4, a5, a6, a7 ) \
  950. ValidateParameters7( IMAPIFolder_CopyMessages, a1, a2, a3, a4, a5, a6, a7 )
  951. #define UlValidate_IMAPIFolder_CopyMessages( a1, a2, a3, a4, a5, a6, a7 ) \
  952. UlValidateParameters7( IMAPIFolder_CopyMessages, a1, a2, a3, a4, a5, a6, a7 )
  953. #define CheckParameters_IMAPIFolder_CopyMessages( a1, a2, a3, a4, a5, a6, a7 ) \
  954. CheckParameters7( IMAPIFolder_CopyMessages, a1, a2, a3, a4, a5, a6, a7 )
  955. #define Validate_IMAPIFolder_DeleteMessages( a1, a2, a3, a4, a5 ) \
  956. ValidateParameters5( IMAPIFolder_DeleteMessages, a1, a2, a3, a4, a5 )
  957. #define UlValidate_IMAPIFolder_DeleteMessages( a1, a2, a3, a4, a5 ) \
  958. UlValidateParameters5( IMAPIFolder_DeleteMessages, a1, a2, a3, a4, a5 )
  959. #define CheckParameters_IMAPIFolder_DeleteMessages( a1, a2, a3, a4, a5 ) \
  960. CheckParameters5( IMAPIFolder_DeleteMessages, a1, a2, a3, a4, a5 )
  961. #define Validate_IMAPIFolder_CreateFolder( a1, a2, a3, a4, a5, a6, a7 ) \
  962. ValidateParameters7( IMAPIFolder_CreateFolder, a1, a2, a3, a4, a5, a6, a7 )
  963. #define UlValidate_IMAPIFolder_CreateFolder( a1, a2, a3, a4, a5, a6, a7 ) \
  964. UlValidateParameters7( IMAPIFolder_CreateFolder, a1, a2, a3, a4, a5, a6, a7 )
  965. #define CheckParameters_IMAPIFolder_CreateFolder( a1, a2, a3, a4, a5, a6, a7 ) \
  966. CheckParameters7( IMAPIFolder_CreateFolder, a1, a2, a3, a4, a5, a6, a7 )
  967. #define Validate_IMAPIFolder_CopyFolder( a1, a2, a3, a4, a5, a6, a7, a8, a9 ) \
  968. ValidateParameters9( IMAPIFolder_CopyFolder, a1, a2, a3, a4, a5, a6, a7, a8, a9 )
  969. #define UlValidate_IMAPIFolder_CopyFolder( a1, a2, a3, a4, a5, a6, a7, a8, a9 ) \
  970. UlValidateParameters9( IMAPIFolder_CopyFolder, a1, a2, a3, a4, a5, a6, a7, a8, a9 )
  971. #define CheckParameters_IMAPIFolder_CopyFolder( a1, a2, a3, a4, a5, a6, a7, a8, a9 ) \
  972. CheckParameters9( IMAPIFolder_CopyFolder, a1, a2, a3, a4, a5, a6, a7, a8, a9 )
  973. #define Validate_IMAPIFolder_DeleteFolder( a1, a2, a3, a4, a5, a6 ) \
  974. ValidateParameters6( IMAPIFolder_DeleteFolder, a1, a2, a3, a4, a5, a6 )
  975. #define UlValidate_IMAPIFolder_DeleteFolder( a1, a2, a3, a4, a5, a6 ) \
  976. UlValidateParameters6( IMAPIFolder_DeleteFolder, a1, a2, a3, a4, a5, a6 )
  977. #define CheckParameters_IMAPIFolder_DeleteFolder( a1, a2, a3, a4, a5, a6 ) \
  978. CheckParameters6( IMAPIFolder_DeleteFolder, a1, a2, a3, a4, a5, a6 )
  979. #define Validate_IMAPIFolder_SetReadFlags( a1, a2, a3, a4, a5 ) \
  980. ValidateParameters5( IMAPIFolder_SetReadFlags, a1, a2, a3, a4, a5 )
  981. #define UlValidate_IMAPIFolder_SetReadFlags( a1, a2, a3, a4, a5 ) \
  982. UlValidateParameters5( IMAPIFolder_SetReadFlags, a1, a2, a3, a4, a5 )
  983. #define CheckParameters_IMAPIFolder_SetReadFlags( a1, a2, a3, a4, a5 ) \
  984. CheckParameters5( IMAPIFolder_SetReadFlags, a1, a2, a3, a4, a5 )
  985. #define Validate_IMAPIFolder_GetMessageStatus( a1, a2, a3, a4, a5 ) \
  986. ValidateParameters5( IMAPIFolder_GetMessageStatus, a1, a2, a3, a4, a5 )
  987. #define UlValidate_IMAPIFolder_GetMessageStatus( a1, a2, a3, a4, a5 ) \
  988. UlValidateParameters5( IMAPIFolder_GetMessageStatus, a1, a2, a3, a4, a5 )
  989. #define CheckParameters_IMAPIFolder_GetMessageStatus( a1, a2, a3, a4, a5 ) \
  990. CheckParameters5( IMAPIFolder_GetMessageStatus, a1, a2, a3, a4, a5 )
  991. #define Validate_IMAPIFolder_SetMessageStatus( a1, a2, a3, a4, a5, a6 ) \
  992. ValidateParameters6( IMAPIFolder_SetMessageStatus, a1, a2, a3, a4, a5, a6 )
  993. #define UlValidate_IMAPIFolder_SetMessageStatus( a1, a2, a3, a4, a5, a6 ) \
  994. UlValidateParameters6( IMAPIFolder_SetMessageStatus, a1, a2, a3, a4, a5, a6 )
  995. #define CheckParameters_IMAPIFolder_SetMessageStatus( a1, a2, a3, a4, a5, a6 ) \
  996. CheckParameters6( IMAPIFolder_SetMessageStatus, a1, a2, a3, a4, a5, a6 )
  997. #define Validate_IMAPIFolder_SaveContentsSort( a1, a2, a3 ) \
  998. ValidateParameters3( IMAPIFolder_SaveContentsSort, a1, a2, a3 )
  999. #define UlValidate_IMAPIFolder_SaveContentsSort( a1, a2, a3 ) \
  1000. UlValidateParameters3( IMAPIFolder_SaveContentsSort, a1, a2, a3 )
  1001. #define CheckParameters_IMAPIFolder_SaveContentsSort( a1, a2, a3 ) \
  1002. CheckParameters3( IMAPIFolder_SaveContentsSort, a1, a2, a3 )
  1003. #define Validate_IMAPIFolder_EmptyFolder( a1, a2, a3, a4 ) \
  1004. ValidateParameters4( IMAPIFolder_EmptyFolder, a1, a2, a3, a4 )
  1005. #define UlValidate_IMAPIFolder_EmptyFolder( a1, a2, a3, a4 ) \
  1006. UlValidateParameters4( IMAPIFolder_EmptyFolder, a1, a2, a3, a4 )
  1007. #define CheckParameters_IMAPIFolder_EmptyFolder( a1, a2, a3, a4 ) \
  1008. CheckParameters4( IMAPIFolder_EmptyFolder, a1, a2, a3, a4 )
  1009. /* IMsgStore */
  1010. #define Validate_IMsgStore_Advise( a1, a2, a3, a4, a5, a6 ) \
  1011. ValidateParameters6( IMsgStore_Advise, a1, a2, a3, a4, a5, a6 )
  1012. #define UlValidate_IMsgStore_Advise( a1, a2, a3, a4, a5, a6 ) \
  1013. UlValidateParameters6( IMsgStore_Advise, a1, a2, a3, a4, a5, a6 )
  1014. #define CheckParameters_IMsgStore_Advise( a1, a2, a3, a4, a5, a6 ) \
  1015. CheckParameters6( IMsgStore_Advise, a1, a2, a3, a4, a5, a6 )
  1016. #define Validate_IMsgStore_Unadvise( a1, a2 ) \
  1017. ValidateParameters2( IMsgStore_Unadvise, a1, a2 )
  1018. #define UlValidate_IMsgStore_Unadvise( a1, a2 ) \
  1019. UlValidateParameters2( IMsgStore_Unadvise, a1, a2 )
  1020. #define CheckParameters_IMsgStore_Unadvise( a1, a2 ) \
  1021. CheckParameters2( IMsgStore_Unadvise, a1, a2 )
  1022. #define Validate_IMsgStore_CompareEntryIDs( a1, a2, a3, a4, a5, a6, a7 ) \
  1023. ValidateParameters7( IMsgStore_CompareEntryIDs, a1, a2, a3, a4, a5, a6, a7 )
  1024. #define UlValidate_IMsgStore_CompareEntryIDs( a1, a2, a3, a4, a5, a6, a7 ) \
  1025. UlValidateParameters7( IMsgStore_CompareEntryIDs, a1, a2, a3, a4, a5, a6, a7 )
  1026. #define CheckParameters_IMsgStore_CompareEntryIDs( a1, a2, a3, a4, a5, a6, a7 ) \
  1027. CheckParameters7( IMsgStore_CompareEntryIDs, a1, a2, a3, a4, a5, a6, a7 )
  1028. #define Validate_IMsgStore_OpenEntry( a1, a2, a3, a4, a5, a6, a7 ) \
  1029. ValidateParameters7( IMsgStore_OpenEntry, a1, a2, a3, a4, a5, a6, a7 )
  1030. #define UlValidate_IMsgStore_OpenEntry( a1, a2, a3, a4, a5, a6, a7 ) \
  1031. UlValidateParameters7( IMsgStore_OpenEntry, a1, a2, a3, a4, a5, a6, a7 )
  1032. #define CheckParameters_IMsgStore_OpenEntry( a1, a2, a3, a4, a5, a6, a7 ) \
  1033. CheckParameters7( IMsgStore_OpenEntry, a1, a2, a3, a4, a5, a6, a7 )
  1034. #define Validate_IMsgStore_SetReceiveFolder( a1, a2, a3, a4, a5 ) \
  1035. ValidateParameters5( IMsgStore_SetReceiveFolder, a1, a2, a3, a4, a5 )
  1036. #define UlValidate_IMsgStore_SetReceiveFolder( a1, a2, a3, a4, a5 ) \
  1037. UlValidateParameters5( IMsgStore_SetReceiveFolder, a1, a2, a3, a4, a5 )
  1038. #define CheckParameters_IMsgStore_SetReceiveFolder( a1, a2, a3, a4, a5 ) \
  1039. CheckParameters5( IMsgStore_SetReceiveFolder, a1, a2, a3, a4, a5 )
  1040. #define Validate_IMsgStore_GetReceiveFolder( a1, a2, a3, a4, a5, a6 ) \
  1041. ValidateParameters6( IMsgStore_GetReceiveFolder, a1, a2, a3, a4, a5, a6 )
  1042. #define UlValidate_IMsgStore_GetReceiveFolder( a1, a2, a3, a4, a5, a6 ) \
  1043. UlValidateParameters6( IMsgStore_GetReceiveFolder, a1, a2, a3, a4, a5, a6 )
  1044. #define CheckParameters_IMsgStore_GetReceiveFolder( a1, a2, a3, a4, a5, a6 ) \
  1045. CheckParameters6( IMsgStore_GetReceiveFolder, a1, a2, a3, a4, a5, a6 )
  1046. #define Validate_IMsgStore_GetReceiveFolderTable( a1, a2, a3 ) \
  1047. ValidateParameters3( IMsgStore_GetReceiveFolderTable, a1, a2, a3 )
  1048. #define UlValidate_IMsgStore_GetReceiveFolderTable( a1, a2, a3 ) \
  1049. UlValidateParameters3( IMsgStore_GetReceiveFolderTable, a1, a2, a3 )
  1050. #define CheckParameters_IMsgStore_GetReceiveFolderTable( a1, a2, a3 ) \
  1051. CheckParameters3( IMsgStore_GetReceiveFolderTable, a1, a2, a3 )
  1052. #define Validate_IMsgStore_StoreLogoff( a1, a2 ) \
  1053. ValidateParameters2( IMsgStore_StoreLogoff, a1, a2 )
  1054. #define UlValidate_IMsgStore_StoreLogoff( a1, a2 ) \
  1055. UlValidateParameters2( IMsgStore_StoreLogoff, a1, a2 )
  1056. #define CheckParameters_IMsgStore_StoreLogoff( a1, a2 ) \
  1057. CheckParameters2( IMsgStore_StoreLogoff, a1, a2 )
  1058. #define Validate_IMsgStore_AbortSubmit( a1, a2, a3, a4 ) \
  1059. ValidateParameters4( IMsgStore_AbortSubmit, a1, a2, a3, a4 )
  1060. #define UlValidate_IMsgStore_AbortSubmit( a1, a2, a3, a4 ) \
  1061. UlValidateParameters4( IMsgStore_AbortSubmit, a1, a2, a3, a4 )
  1062. #define CheckParameters_IMsgStore_AbortSubmit( a1, a2, a3, a4 ) \
  1063. CheckParameters4( IMsgStore_AbortSubmit, a1, a2, a3, a4 )
  1064. #define Validate_IMsgStore_GetOutgoingQueue( a1, a2, a3 ) \
  1065. ValidateParameters3( IMsgStore_GetOutgoingQueue, a1, a2, a3 )
  1066. #define UlValidate_IMsgStore_GetOutgoingQueue( a1, a2, a3 ) \
  1067. UlValidateParameters3( IMsgStore_GetOutgoingQueue, a1, a2, a3 )
  1068. #define CheckParameters_IMsgStore_GetOutgoingQueue( a1, a2, a3 ) \
  1069. CheckParameters3( IMsgStore_GetOutgoingQueue, a1, a2, a3 )
  1070. #define Validate_IMsgStore_SetLockState( a1, a2, a3 ) \
  1071. ValidateParameters3( IMsgStore_SetLockState, a1, a2, a3 )
  1072. #define UlValidate_IMsgStore_SetLockState( a1, a2, a3 ) \
  1073. UlValidateParameters3( IMsgStore_SetLockState, a1, a2, a3 )
  1074. #define CheckParameters_IMsgStore_SetLockState( a1, a2, a3 ) \
  1075. CheckParameters3( IMsgStore_SetLockState, a1, a2, a3 )
  1076. #define Validate_IMsgStore_FinishedMsg( a1, a2, a3, a4 ) \
  1077. ValidateParameters4( IMsgStore_FinishedMsg, a1, a2, a3, a4 )
  1078. #define UlValidate_IMsgStore_FinishedMsg( a1, a2, a3, a4 ) \
  1079. UlValidateParameters4( IMsgStore_FinishedMsg, a1, a2, a3, a4 )
  1080. #define CheckParameters_IMsgStore_FinishedMsg( a1, a2, a3, a4 ) \
  1081. CheckParameters4( IMsgStore_FinishedMsg, a1, a2, a3, a4 )
  1082. #define Validate_IMsgStore_NotifyNewMail( a1, a2 ) \
  1083. ValidateParameters2( IMsgStore_NotifyNewMail, a1, a2 )
  1084. #define UlValidate_IMsgStore_NotifyNewMail( a1, a2 ) \
  1085. UlValidateParameters2( IMsgStore_NotifyNewMail, a1, a2 )
  1086. #define CheckParameters_IMsgStore_NotifyNewMail( a1, a2 ) \
  1087. CheckParameters2( IMsgStore_NotifyNewMail, a1, a2 )
  1088. /* IMessage */
  1089. #define Validate_IMessage_GetAttachmentTable( a1, a2, a3 ) \
  1090. ValidateParameters3( IMessage_GetAttachmentTable, a1, a2, a3 )
  1091. #define UlValidate_IMessage_GetAttachmentTable( a1, a2, a3 ) \
  1092. UlValidateParameters3( IMessage_GetAttachmentTable, a1, a2, a3 )
  1093. #define CheckParameters_IMessage_GetAttachmentTable( a1, a2, a3 ) \
  1094. CheckParameters3( IMessage_GetAttachmentTable, a1, a2, a3 )
  1095. #define Validate_IMessage_OpenAttach( a1, a2, a3, a4, a5 ) \
  1096. ValidateParameters5( IMessage_OpenAttach, a1, a2, a3, a4, a5 )
  1097. #define UlValidate_IMessage_OpenAttach( a1, a2, a3, a4, a5 ) \
  1098. UlValidateParameters5( IMessage_OpenAttach, a1, a2, a3, a4, a5 )
  1099. #define CheckParameters_IMessage_OpenAttach( a1, a2, a3, a4, a5 ) \
  1100. CheckParameters5( IMessage_OpenAttach, a1, a2, a3, a4, a5 )
  1101. #define Validate_IMessage_CreateAttach( a1, a2, a3, a4, a5 ) \
  1102. ValidateParameters5( IMessage_CreateAttach, a1, a2, a3, a4, a5 )
  1103. #define UlValidate_IMessage_CreateAttach( a1, a2, a3, a4, a5 ) \
  1104. UlValidateParameters5( IMessage_CreateAttach, a1, a2, a3, a4, a5 )
  1105. #define CheckParameters_IMessage_CreateAttach( a1, a2, a3, a4, a5 ) \
  1106. CheckParameters5( IMessage_CreateAttach, a1, a2, a3, a4, a5 )
  1107. #define Validate_IMessage_DeleteAttach( a1, a2, a3, a4, a5 ) \
  1108. ValidateParameters5( IMessage_DeleteAttach, a1, a2, a3, a4, a5 )
  1109. #define UlValidate_IMessage_DeleteAttach( a1, a2, a3, a4, a5 ) \
  1110. UlValidateParameters5( IMessage_DeleteAttach, a1, a2, a3, a4, a5 )
  1111. #define CheckParameters_IMessage_DeleteAttach( a1, a2, a3, a4, a5 ) \
  1112. CheckParameters5( IMessage_DeleteAttach, a1, a2, a3, a4, a5 )
  1113. #define Validate_IMessage_GetRecipientTable( a1, a2, a3 ) \
  1114. ValidateParameters3( IMessage_GetRecipientTable, a1, a2, a3 )
  1115. #define UlValidate_IMessage_GetRecipientTable( a1, a2, a3 ) \
  1116. UlValidateParameters3( IMessage_GetRecipientTable, a1, a2, a3 )
  1117. #define CheckParameters_IMessage_GetRecipientTable( a1, a2, a3 ) \
  1118. CheckParameters3( IMessage_GetRecipientTable, a1, a2, a3 )
  1119. #define Validate_IMessage_ModifyRecipients( a1, a2, a3 ) \
  1120. ValidateParameters3( IMessage_ModifyRecipients, a1, a2, a3 )
  1121. #define UlValidate_IMessage_ModifyRecipients( a1, a2, a3 ) \
  1122. UlValidateParameters3( IMessage_ModifyRecipients, a1, a2, a3 )
  1123. #define CheckParameters_IMessage_ModifyRecipients( a1, a2, a3 ) \
  1124. CheckParameters3( IMessage_ModifyRecipients, a1, a2, a3 )
  1125. #define Validate_IMessage_SubmitMessage( a1, a2 ) \
  1126. ValidateParameters2( IMessage_SubmitMessage, a1, a2 )
  1127. #define UlValidate_IMessage_SubmitMessage( a1, a2 ) \
  1128. UlValidateParameters2( IMessage_SubmitMessage, a1, a2 )
  1129. #define CheckParameters_IMessage_SubmitMessage( a1, a2 ) \
  1130. CheckParameters2( IMessage_SubmitMessage, a1, a2 )
  1131. #define Validate_IMessage_SetReadFlag( a1, a2 ) \
  1132. ValidateParameters2( IMessage_SetReadFlag, a1, a2 )
  1133. #define UlValidate_IMessage_SetReadFlag( a1, a2 ) \
  1134. UlValidateParameters2( IMessage_SetReadFlag, a1, a2 )
  1135. #define CheckParameters_IMessage_SetReadFlag( a1, a2 ) \
  1136. CheckParameters2( IMessage_SetReadFlag, a1, a2 )
  1137. /* IABProvider */
  1138. #define Validate_IABProvider_Shutdown( a1, a2 ) \
  1139. ValidateParameters2( IABProvider_Shutdown, a1, a2 )
  1140. #define UlValidate_IABProvider_Shutdown( a1, a2 ) \
  1141. UlValidateParameters2( IABProvider_Shutdown, a1, a2 )
  1142. #define CheckParameters_IABProvider_Shutdown( a1, a2 ) \
  1143. CheckParameters2( IABProvider_Shutdown, a1, a2 )
  1144. #define Validate_IABProvider_Logon( a1, a2, a3, a4, a5, a6, a7, a8, a9 ) \
  1145. ValidateParameters9( IABProvider_Logon, a1, a2, a3, a4, a5, a6, a7, a8, a9 )
  1146. #define UlValidate_IABProvider_Logon( a1, a2, a3, a4, a5, a6, a7, a8, a9 ) \
  1147. UlValidateParameters9( IABProvider_Logon, a1, a2, a3, a4, a5, a6, a7, a8, a9 )
  1148. #define CheckParameters_IABProvider_Logon( a1, a2, a3, a4, a5, a6, a7, a8, a9 ) \
  1149. CheckParameters9( IABProvider_Logon, a1, a2, a3, a4, a5, a6, a7, a8, a9 )
  1150. /* IABLogon */
  1151. #define Validate_IABLogon_GetLastError( a1, a2, a3, a4 ) \
  1152. ValidateParameters4( IABLogon_GetLastError, a1, a2, a3, a4 )
  1153. #define UlValidate_IABLogon_GetLastError( a1, a2, a3, a4 ) \
  1154. UlValidateParameters4( IABLogon_GetLastError, a1, a2, a3, a4 )
  1155. #define CheckParameters_IABLogon_GetLastError( a1, a2, a3, a4 ) \
  1156. CheckParameters4( IABLogon_GetLastError, a1, a2, a3, a4 )
  1157. #define Validate_IABLogon_Logoff( a1, a2 ) \
  1158. ValidateParameters2( IABLogon_Logoff, a1, a2 )
  1159. #define UlValidate_IABLogon_Logoff( a1, a2 ) \
  1160. UlValidateParameters2( IABLogon_Logoff, a1, a2 )
  1161. #define CheckParameters_IABLogon_Logoff( a1, a2 ) \
  1162. CheckParameters2( IABLogon_Logoff, a1, a2 )
  1163. #define Validate_IABLogon_OpenEntry( a1, a2, a3, a4, a5, a6, a7 ) \
  1164. ValidateParameters7( IABLogon_OpenEntry, a1, a2, a3, a4, a5, a6, a7 )
  1165. #define UlValidate_IABLogon_OpenEntry( a1, a2, a3, a4, a5, a6, a7 ) \
  1166. UlValidateParameters7( IABLogon_OpenEntry, a1, a2, a3, a4, a5, a6, a7 )
  1167. #define CheckParameters_IABLogon_OpenEntry( a1, a2, a3, a4, a5, a6, a7 ) \
  1168. CheckParameters7( IABLogon_OpenEntry, a1, a2, a3, a4, a5, a6, a7 )
  1169. #define Validate_IABLogon_CompareEntryIDs( a1, a2, a3, a4, a5, a6, a7 ) \
  1170. ValidateParameters7( IABLogon_CompareEntryIDs, a1, a2, a3, a4, a5, a6, a7 )
  1171. #define UlValidate_IABLogon_CompareEntryIDs( a1, a2, a3, a4, a5, a6, a7 ) \
  1172. UlValidateParameters7( IABLogon_CompareEntryIDs, a1, a2, a3, a4, a5, a6, a7 )
  1173. #define CheckParameters_IABLogon_CompareEntryIDs( a1, a2, a3, a4, a5, a6, a7 ) \
  1174. CheckParameters7( IABLogon_CompareEntryIDs, a1, a2, a3, a4, a5, a6, a7 )
  1175. #define Validate_IABLogon_Advise( a1, a2, a3, a4, a5, a6 ) \
  1176. ValidateParameters6( IABLogon_Advise, a1, a2, a3, a4, a5, a6 )
  1177. #define UlValidate_IABLogon_Advise( a1, a2, a3, a4, a5, a6 ) \
  1178. UlValidateParameters6( IABLogon_Advise, a1, a2, a3, a4, a5, a6 )
  1179. #define CheckParameters_IABLogon_Advise( a1, a2, a3, a4, a5, a6 ) \
  1180. CheckParameters6( IABLogon_Advise, a1, a2, a3, a4, a5, a6 )
  1181. #define Validate_IABLogon_Unadvise( a1, a2 ) \
  1182. ValidateParameters2( IABLogon_Unadvise, a1, a2 )
  1183. #define UlValidate_IABLogon_Unadvise( a1, a2 ) \
  1184. UlValidateParameters2( IABLogon_Unadvise, a1, a2 )
  1185. #define CheckParameters_IABLogon_Unadvise( a1, a2 ) \
  1186. CheckParameters2( IABLogon_Unadvise, a1, a2 )
  1187. #define Validate_IABLogon_OpenStatusEntry( a1, a2, a3, a4, a5 ) \
  1188. ValidateParameters5( IABLogon_OpenStatusEntry, a1, a2, a3, a4, a5 )
  1189. #define UlValidate_IABLogon_OpenStatusEntry( a1, a2, a3, a4, a5 ) \
  1190. UlValidateParameters5( IABLogon_OpenStatusEntry, a1, a2, a3, a4, a5 )
  1191. #define CheckParameters_IABLogon_OpenStatusEntry( a1, a2, a3, a4, a5 ) \
  1192. CheckParameters5( IABLogon_OpenStatusEntry, a1, a2, a3, a4, a5 )
  1193. #define Validate_IABLogon_OpenTemplateID( a1, a2, a3, a4, a5, a6, a7, a8 ) \
  1194. ValidateParameters8( IABLogon_OpenTemplateID, a1, a2, a3, a4, a5, a6, a7, a8 )
  1195. #define UlValidate_IABLogon_OpenTemplateID( a1, a2, a3, a4, a5, a6, a7, a8 ) \
  1196. UlValidateParameters8( IABLogon_OpenTemplateID, a1, a2, a3, a4, a5, a6, a7, a8 )
  1197. #define CheckParameters_IABLogon_OpenTemplateID( a1, a2, a3, a4, a5, a6, a7, a8 ) \
  1198. CheckParameters8( IABLogon_OpenTemplateID, a1, a2, a3, a4, a5, a6, a7, a8 )
  1199. #define Validate_IABLogon_GetOneOffTable( a1, a2, a3 ) \
  1200. ValidateParameters3( IABLogon_GetOneOffTable, a1, a2, a3 )
  1201. #define UlValidate_IABLogon_GetOneOffTable( a1, a2, a3 ) \
  1202. UlValidateParameters3( IABLogon_GetOneOffTable, a1, a2, a3 )
  1203. #define CheckParameters_IABLogon_GetOneOffTable( a1, a2, a3 ) \
  1204. CheckParameters3( IABLogon_GetOneOffTable, a1, a2, a3 )
  1205. #define Validate_IABLogon_PrepareRecips( a1, a2, a3, a4 ) \
  1206. ValidateParameters4( IABLogon_PrepareRecips, a1, a2, a3, a4 )
  1207. #define UlValidate_IABLogon_PrepareRecips( a1, a2, a3, a4 ) \
  1208. UlValidateParameters4( IABLogon_PrepareRecips, a1, a2, a3, a4 )
  1209. #define CheckParameters_IABLogon_PrepareRecips( a1, a2, a3, a4 ) \
  1210. CheckParameters4( IABLogon_PrepareRecips, a1, a2, a3, a4 )
  1211. /* IXPProvider */
  1212. #define Validate_IXPProvider_Shutdown( a1, a2 ) \
  1213. ValidateParameters2( IXPProvider_Shutdown, a1, a2 )
  1214. #define UlValidate_IXPProvider_Shutdown( a1, a2 ) \
  1215. UlValidateParameters2( IXPProvider_Shutdown, a1, a2 )
  1216. #define CheckParameters_IXPProvider_Shutdown( a1, a2 ) \
  1217. CheckParameters2( IXPProvider_Shutdown, a1, a2 )
  1218. #define Validate_IXPProvider_TransportLogon( a1, a2, a3, a4, a5, a6, a7 ) \
  1219. ValidateParameters7( IXPProvider_TransportLogon, a1, a2, a3, a4, a5, a6, a7 )
  1220. #define UlValidate_IXPProvider_TransportLogon( a1, a2, a3, a4, a5, a6, a7 ) \
  1221. UlValidateParameters7( IXPProvider_TransportLogon, a1, a2, a3, a4, a5, a6, a7 )
  1222. #define CheckParameters_IXPProvider_TransportLogon( a1, a2, a3, a4, a5, a6, a7 ) \
  1223. CheckParameters7( IXPProvider_TransportLogon, a1, a2, a3, a4, a5, a6, a7 )
  1224. /* IXPLogon */
  1225. #define Validate_IXPLogon_AddressTypes( a1, a2, a3, a4, a5, a6 ) \
  1226. ValidateParameters6( IXPLogon_AddressTypes, a1, a2, a3, a4, a5, a6 )
  1227. #define UlValidate_IXPLogon_AddressTypes( a1, a2, a3, a4, a5, a6 ) \
  1228. UlValidateParameters6( IXPLogon_AddressTypes, a1, a2, a3, a4, a5, a6 )
  1229. #define CheckParameters_IXPLogon_AddressTypes( a1, a2, a3, a4, a5, a6 ) \
  1230. CheckParameters6( IXPLogon_AddressTypes, a1, a2, a3, a4, a5, a6 )
  1231. #define Validate_IXPLogon_RegisterOptions( a1, a2, a3, a4 ) \
  1232. ValidateParameters4( IXPLogon_RegisterOptions, a1, a2, a3, a4 )
  1233. #define UlValidate_IXPLogon_RegisterOptions( a1, a2, a3, a4 ) \
  1234. UlValidateParameters4( IXPLogon_RegisterOptions, a1, a2, a3, a4 )
  1235. #define CheckParameters_IXPLogon_RegisterOptions( a1, a2, a3, a4 ) \
  1236. CheckParameters4( IXPLogon_RegisterOptions, a1, a2, a3, a4 )
  1237. #define Validate_IXPLogon_TransportNotify( a1, a2, a3 ) \
  1238. ValidateParameters3( IXPLogon_TransportNotify, a1, a2, a3 )
  1239. #define UlValidate_IXPLogon_TransportNotify( a1, a2, a3 ) \
  1240. UlValidateParameters3( IXPLogon_TransportNotify, a1, a2, a3 )
  1241. #define CheckParameters_IXPLogon_TransportNotify( a1, a2, a3 ) \
  1242. CheckParameters3( IXPLogon_TransportNotify, a1, a2, a3 )
  1243. #define Validate_IXPLogon_Idle( a1, a2 ) \
  1244. ValidateParameters2( IXPLogon_Idle, a1, a2 )
  1245. #define UlValidate_IXPLogon_Idle( a1, a2 ) \
  1246. UlValidateParameters2( IXPLogon_Idle, a1, a2 )
  1247. #define CheckParameters_IXPLogon_Idle( a1, a2 ) \
  1248. CheckParameters2( IXPLogon_Idle, a1, a2 )
  1249. #define Validate_IXPLogon_TransportLogoff( a1, a2 ) \
  1250. ValidateParameters2( IXPLogon_TransportLogoff, a1, a2 )
  1251. #define UlValidate_IXPLogon_TransportLogoff( a1, a2 ) \
  1252. UlValidateParameters2( IXPLogon_TransportLogoff, a1, a2 )
  1253. #define CheckParameters_IXPLogon_TransportLogoff( a1, a2 ) \
  1254. CheckParameters2( IXPLogon_TransportLogoff, a1, a2 )
  1255. #define Validate_IXPLogon_SubmitMessage( a1, a2, a3, a4, a5 ) \
  1256. ValidateParameters5( IXPLogon_SubmitMessage, a1, a2, a3, a4, a5 )
  1257. #define UlValidate_IXPLogon_SubmitMessage( a1, a2, a3, a4, a5 ) \
  1258. UlValidateParameters5( IXPLogon_SubmitMessage, a1, a2, a3, a4, a5 )
  1259. #define CheckParameters_IXPLogon_SubmitMessage( a1, a2, a3, a4, a5 ) \
  1260. CheckParameters5( IXPLogon_SubmitMessage, a1, a2, a3, a4, a5 )
  1261. #define Validate_IXPLogon_EndMessage( a1, a2, a3 ) \
  1262. ValidateParameters3( IXPLogon_EndMessage, a1, a2, a3 )
  1263. #define UlValidate_IXPLogon_EndMessage( a1, a2, a3 ) \
  1264. UlValidateParameters3( IXPLogon_EndMessage, a1, a2, a3 )
  1265. #define CheckParameters_IXPLogon_EndMessage( a1, a2, a3 ) \
  1266. CheckParameters3( IXPLogon_EndMessage, a1, a2, a3 )
  1267. #define Validate_IXPLogon_Poll( a1, a2 ) \
  1268. ValidateParameters2( IXPLogon_Poll, a1, a2 )
  1269. #define UlValidate_IXPLogon_Poll( a1, a2 ) \
  1270. UlValidateParameters2( IXPLogon_Poll, a1, a2 )
  1271. #define CheckParameters_IXPLogon_Poll( a1, a2 ) \
  1272. CheckParameters2( IXPLogon_Poll, a1, a2 )
  1273. #define Validate_IXPLogon_StartMessage( a1, a2, a3, a4 ) \
  1274. ValidateParameters4( IXPLogon_StartMessage, a1, a2, a3, a4 )
  1275. #define UlValidate_IXPLogon_StartMessage( a1, a2, a3, a4 ) \
  1276. UlValidateParameters4( IXPLogon_StartMessage, a1, a2, a3, a4 )
  1277. #define CheckParameters_IXPLogon_StartMessage( a1, a2, a3, a4 ) \
  1278. CheckParameters4( IXPLogon_StartMessage, a1, a2, a3, a4 )
  1279. #define Validate_IXPLogon_OpenStatusEntry( a1, a2, a3, a4, a5 ) \
  1280. ValidateParameters5( IXPLogon_OpenStatusEntry, a1, a2, a3, a4, a5 )
  1281. #define UlValidate_IXPLogon_OpenStatusEntry( a1, a2, a3, a4, a5 ) \
  1282. UlValidateParameters5( IXPLogon_OpenStatusEntry, a1, a2, a3, a4, a5 )
  1283. #define CheckParameters_IXPLogon_OpenStatusEntry( a1, a2, a3, a4, a5 ) \
  1284. CheckParameters5( IXPLogon_OpenStatusEntry, a1, a2, a3, a4, a5 )
  1285. #define Validate_IXPLogon_ValidateState( a1, a2, a3 ) \
  1286. ValidateParameters3( IXPLogon_ValidateState, a1, a2, a3 )
  1287. #define UlValidate_IXPLogon_ValidateState( a1, a2, a3 ) \
  1288. UlValidateParameters3( IXPLogon_ValidateState, a1, a2, a3 )
  1289. #define CheckParameters_IXPLogon_ValidateState( a1, a2, a3 ) \
  1290. CheckParameters3( IXPLogon_ValidateState, a1, a2, a3 )
  1291. #define Validate_IXPLogon_FlushQueues( a1, a2, a3, a4, a5 ) \
  1292. ValidateParameters5( IXPLogon_FlushQueues, a1, a2, a3, a4, a5 )
  1293. #define UlValidate_IXPLogon_FlushQueues( a1, a2, a3, a4, a5 ) \
  1294. UlValidateParameters5( IXPLogon_FlushQueues, a1, a2, a3, a4, a5 )
  1295. #define CheckParameters_IXPLogon_FlushQueues( a1, a2, a3, a4, a5 ) \
  1296. CheckParameters5( IXPLogon_FlushQueues, a1, a2, a3, a4, a5 )
  1297. /* IMSProvider */
  1298. #define Validate_IMSProvider_Shutdown( a1, a2 ) \
  1299. ValidateParameters2( IMSProvider_Shutdown, a1, a2 )
  1300. #define UlValidate_IMSProvider_Shutdown( a1, a2 ) \
  1301. UlValidateParameters2( IMSProvider_Shutdown, a1, a2 )
  1302. #define CheckParameters_IMSProvider_Shutdown( a1, a2 ) \
  1303. CheckParameters2( IMSProvider_Shutdown, a1, a2 )
  1304. #define Validate_IMSProvider_Logon( a1, a2, a3, a4, a5, a6, a7, a8, a9, a10, a11, a12, a13 ) \
  1305. ValidateParameters13( IMSProvider_Logon, a1, a2, a3, a4, a5, a6, a7, a8, a9, a10, a11, a12, a13 )
  1306. #define UlValidate_IMSProvider_Logon( a1, a2, a3, a4, a5, a6, a7, a8, a9, a10, a11, a12, a13 ) \
  1307. UlValidateParameters13( IMSProvider_Logon, a1, a2, a3, a4, a5, a6, a7, a8, a9, a10, a11, a12, a13 )
  1308. #define CheckParameters_IMSProvider_Logon( a1, a2, a3, a4, a5, a6, a7, a8, a9, a10, a11, a12, a13 ) \
  1309. CheckParameters13( IMSProvider_Logon, a1, a2, a3, a4, a5, a6, a7, a8, a9, a10, a11, a12, a13 )
  1310. #define Validate_IMSProvider_SpoolerLogon( a1, a2, a3, a4, a5, a6, a7, a8, a9, a10, a11, a12, a13 ) \
  1311. ValidateParameters13( IMSProvider_SpoolerLogon, a1, a2, a3, a4, a5, a6, a7, a8, a9, a10, a11, a12, a13 )
  1312. #define UlValidate_IMSProvider_SpoolerLogon( a1, a2, a3, a4, a5, a6, a7, a8, a9, a10, a11, a12, a13 ) \
  1313. UlValidateParameters13( IMSProvider_SpoolerLogon, a1, a2, a3, a4, a5, a6, a7, a8, a9, a10, a11, a12, a13 )
  1314. #define CheckParameters_IMSProvider_SpoolerLogon( a1, a2, a3, a4, a5, a6, a7, a8, a9, a10, a11, a12, a13 ) \
  1315. CheckParameters13( IMSProvider_SpoolerLogon, a1, a2, a3, a4, a5, a6, a7, a8, a9, a10, a11, a12, a13 )
  1316. #define Validate_IMSProvider_CompareStoreIDs( a1, a2, a3, a4, a5, a6, a7 ) \
  1317. ValidateParameters7( IMSProvider_CompareStoreIDs, a1, a2, a3, a4, a5, a6, a7 )
  1318. #define UlValidate_IMSProvider_CompareStoreIDs( a1, a2, a3, a4, a5, a6, a7 ) \
  1319. UlValidateParameters7( IMSProvider_CompareStoreIDs, a1, a2, a3, a4, a5, a6, a7 )
  1320. #define CheckParameters_IMSProvider_CompareStoreIDs( a1, a2, a3, a4, a5, a6, a7 ) \
  1321. CheckParameters7( IMSProvider_CompareStoreIDs, a1, a2, a3, a4, a5, a6, a7 )
  1322. /* IMSLogon */
  1323. #define Validate_IMSLogon_GetLastError( a1, a2, a3, a4 ) \
  1324. ValidateParameters4( IMSLogon_GetLastError, a1, a2, a3, a4 )
  1325. #define UlValidate_IMSLogon_GetLastError( a1, a2, a3, a4 ) \
  1326. UlValidateParameters4( IMSLogon_GetLastError, a1, a2, a3, a4 )
  1327. #define CheckParameters_IMSLogon_GetLastError( a1, a2, a3, a4 ) \
  1328. CheckParameters4( IMSLogon_GetLastError, a1, a2, a3, a4 )
  1329. #define Validate_IMSLogon_Logoff( a1, a2 ) \
  1330. ValidateParameters2( IMSLogon_Logoff, a1, a2 )
  1331. #define UlValidate_IMSLogon_Logoff( a1, a2 ) \
  1332. UlValidateParameters2( IMSLogon_Logoff, a1, a2 )
  1333. #define CheckParameters_IMSLogon_Logoff( a1, a2 ) \
  1334. CheckParameters2( IMSLogon_Logoff, a1, a2 )
  1335. #define Validate_IMSLogon_OpenEntry( a1, a2, a3, a4, a5, a6, a7 ) \
  1336. ValidateParameters7( IMSLogon_OpenEntry, a1, a2, a3, a4, a5, a6, a7 )
  1337. #define UlValidate_IMSLogon_OpenEntry( a1, a2, a3, a4, a5, a6, a7 ) \
  1338. UlValidateParameters7( IMSLogon_OpenEntry, a1, a2, a3, a4, a5, a6, a7 )
  1339. #define CheckParameters_IMSLogon_OpenEntry( a1, a2, a3, a4, a5, a6, a7 ) \
  1340. CheckParameters7( IMSLogon_OpenEntry, a1, a2, a3, a4, a5, a6, a7 )
  1341. #define Validate_IMSLogon_CompareEntryIDs( a1, a2, a3, a4, a5, a6, a7 ) \
  1342. ValidateParameters7( IMSLogon_CompareEntryIDs, a1, a2, a3, a4, a5, a6, a7 )
  1343. #define UlValidate_IMSLogon_CompareEntryIDs( a1, a2, a3, a4, a5, a6, a7 ) \
  1344. UlValidateParameters7( IMSLogon_CompareEntryIDs, a1, a2, a3, a4, a5, a6, a7 )
  1345. #define CheckParameters_IMSLogon_CompareEntryIDs( a1, a2, a3, a4, a5, a6, a7 ) \
  1346. CheckParameters7( IMSLogon_CompareEntryIDs, a1, a2, a3, a4, a5, a6, a7 )
  1347. #define Validate_IMSLogon_Advise( a1, a2, a3, a4, a5, a6 ) \
  1348. ValidateParameters6( IMSLogon_Advise, a1, a2, a3, a4, a5, a6 )
  1349. #define UlValidate_IMSLogon_Advise( a1, a2, a3, a4, a5, a6 ) \
  1350. UlValidateParameters6( IMSLogon_Advise, a1, a2, a3, a4, a5, a6 )
  1351. #define CheckParameters_IMSLogon_Advise( a1, a2, a3, a4, a5, a6 ) \
  1352. CheckParameters6( IMSLogon_Advise, a1, a2, a3, a4, a5, a6 )
  1353. #define Validate_IMSLogon_Unadvise( a1, a2 ) \
  1354. ValidateParameters2( IMSLogon_Unadvise, a1, a2 )
  1355. #define UlValidate_IMSLogon_Unadvise( a1, a2 ) \
  1356. UlValidateParameters2( IMSLogon_Unadvise, a1, a2 )
  1357. #define CheckParameters_IMSLogon_Unadvise( a1, a2 ) \
  1358. CheckParameters2( IMSLogon_Unadvise, a1, a2 )
  1359. #define Validate_IMSLogon_OpenStatusEntry( a1, a2, a3, a4, a5 ) \
  1360. ValidateParameters5( IMSLogon_OpenStatusEntry, a1, a2, a3, a4, a5 )
  1361. #define UlValidate_IMSLogon_OpenStatusEntry( a1, a2, a3, a4, a5 ) \
  1362. UlValidateParameters5( IMSLogon_OpenStatusEntry, a1, a2, a3, a4, a5 )
  1363. #define CheckParameters_IMSLogon_OpenStatusEntry( a1, a2, a3, a4, a5 ) \
  1364. CheckParameters5( IMSLogon_OpenStatusEntry, a1, a2, a3, a4, a5 )
  1365. /* IMAPIControl */
  1366. #define Validate_IMAPIControl_GetLastError( a1, a2, a3, a4 ) \
  1367. ValidateParameters4( IMAPIControl_GetLastError, a1, a2, a3, a4 )
  1368. #define UlValidate_IMAPIControl_GetLastError( a1, a2, a3, a4 ) \
  1369. UlValidateParameters4( IMAPIControl_GetLastError, a1, a2, a3, a4 )
  1370. #define CheckParameters_IMAPIControl_GetLastError( a1, a2, a3, a4 ) \
  1371. CheckParameters4( IMAPIControl_GetLastError, a1, a2, a3, a4 )
  1372. #define Validate_IMAPIControl_Activate( a1, a2, a3 ) \
  1373. ValidateParameters3( IMAPIControl_Activate, a1, a2, a3 )
  1374. #define UlValidate_IMAPIControl_Activate( a1, a2, a3 ) \
  1375. UlValidateParameters3( IMAPIControl_Activate, a1, a2, a3 )
  1376. #define CheckParameters_IMAPIControl_Activate( a1, a2, a3 ) \
  1377. CheckParameters3( IMAPIControl_Activate, a1, a2, a3 )
  1378. #define Validate_IMAPIControl_GetState( a1, a2, a3 ) \
  1379. ValidateParameters3( IMAPIControl_GetState, a1, a2, a3 )
  1380. #define UlValidate_IMAPIControl_GetState( a1, a2, a3 ) \
  1381. UlValidateParameters3( IMAPIControl_GetState, a1, a2, a3 )
  1382. #define CheckParameters_IMAPIControl_GetState( a1, a2, a3 ) \
  1383. CheckParameters3( IMAPIControl_GetState, a1, a2, a3 )
  1384. /* IMAPIStatus */
  1385. #define Validate_IMAPIStatus_ValidateState( a1, a2, a3 ) \
  1386. ValidateParameters3( IMAPIStatus_ValidateState, a1, a2, a3 )
  1387. #define UlValidate_IMAPIStatus_ValidateState( a1, a2, a3 ) \
  1388. UlValidateParameters3( IMAPIStatus_ValidateState, a1, a2, a3 )
  1389. #define CheckParameters_IMAPIStatus_ValidateState( a1, a2, a3 ) \
  1390. CheckParameters3( IMAPIStatus_ValidateState, a1, a2, a3 )
  1391. #define Validate_IMAPIStatus_SettingsDialog( a1, a2, a3 ) \
  1392. ValidateParameters3( IMAPIStatus_SettingsDialog, a1, a2, a3 )
  1393. #define UlValidate_IMAPIStatus_SettingsDialog( a1, a2, a3 ) \
  1394. UlValidateParameters3( IMAPIStatus_SettingsDialog, a1, a2, a3 )
  1395. #define CheckParameters_IMAPIStatus_SettingsDialog( a1, a2, a3 ) \
  1396. CheckParameters3( IMAPIStatus_SettingsDialog, a1, a2, a3 )
  1397. #define Validate_IMAPIStatus_ChangePassword( a1, a2, a3, a4 ) \
  1398. ValidateParameters4( IMAPIStatus_ChangePassword, a1, a2, a3, a4 )
  1399. #define UlValidate_IMAPIStatus_ChangePassword( a1, a2, a3, a4 ) \
  1400. UlValidateParameters4( IMAPIStatus_ChangePassword, a1, a2, a3, a4 )
  1401. #define CheckParameters_IMAPIStatus_ChangePassword( a1, a2, a3, a4 ) \
  1402. CheckParameters4( IMAPIStatus_ChangePassword, a1, a2, a3, a4 )
  1403. #define Validate_IMAPIStatus_FlushQueues( a1, a2, a3, a4, a5 ) \
  1404. ValidateParameters5( IMAPIStatus_FlushQueues, a1, a2, a3, a4, a5 )
  1405. #define UlValidate_IMAPIStatus_FlushQueues( a1, a2, a3, a4, a5 ) \
  1406. UlValidateParameters5( IMAPIStatus_FlushQueues, a1, a2, a3, a4, a5 )
  1407. #define CheckParameters_IMAPIStatus_FlushQueues( a1, a2, a3, a4, a5 ) \
  1408. CheckParameters5( IMAPIStatus_FlushQueues, a1, a2, a3, a4, a5 )
  1409. /* IStream */
  1410. #define Validate_IStream_Read( a1, a2, a3, a4 ) \
  1411. ValidateParameters4( IStream_Read, a1, a2, a3, a4 )
  1412. #define UlValidate_IStream_Read( a1, a2, a3, a4 ) \
  1413. UlValidateParameters4( IStream_Read, a1, a2, a3, a4 )
  1414. #define CheckParameters_IStream_Read( a1, a2, a3, a4 ) \
  1415. CheckParameters4( IStream_Read, a1, a2, a3, a4 )
  1416. #define Validate_IStream_Write( a1, a2, a3, a4 ) \
  1417. ValidateParameters4( IStream_Write, a1, a2, a3, a4 )
  1418. #define UlValidate_IStream_Write( a1, a2, a3, a4 ) \
  1419. UlValidateParameters4( IStream_Write, a1, a2, a3, a4 )
  1420. #define CheckParameters_IStream_Write( a1, a2, a3, a4 ) \
  1421. CheckParameters4( IStream_Write, a1, a2, a3, a4 )
  1422. #define Validate_IStream_Seek( a1, a2, a3, a4 ) \
  1423. ValidateParameters4( IStream_Seek, a1, a2, a3, a4 )
  1424. #define UlValidate_IStream_Seek( a1, a2, a3, a4 ) \
  1425. UlValidateParameters4( IStream_Seek, a1, a2, a3, a4 )
  1426. #define CheckParameters_IStream_Seek( a1, a2, a3, a4 ) \
  1427. CheckParameters4( IStream_Seek, a1, a2, a3, a4 )
  1428. #define Validate_IStream_SetSize( a1, a2 ) \
  1429. ValidateParameters2( IStream_SetSize, a1, a2 )
  1430. #define UlValidate_IStream_SetSize( a1, a2 ) \
  1431. UlValidateParameters2( IStream_SetSize, a1, a2 )
  1432. #define CheckParameters_IStream_SetSize( a1, a2 ) \
  1433. CheckParameters2( IStream_SetSize, a1, a2 )
  1434. #define Validate_IStream_CopyTo( a1, a2, a3, a4, a5 ) \
  1435. ValidateParameters5( IStream_CopyTo, a1, a2, a3, a4, a5 )
  1436. #define UlValidate_IStream_CopyTo( a1, a2, a3, a4, a5 ) \
  1437. UlValidateParameters5( IStream_CopyTo, a1, a2, a3, a4, a5 )
  1438. #define CheckParameters_IStream_CopyTo( a1, a2, a3, a4, a5 ) \
  1439. CheckParameters5( IStream_CopyTo, a1, a2, a3, a4, a5 )
  1440. #define Validate_IStream_Commit( a1, a2 ) \
  1441. ValidateParameters2( IStream_Commit, a1, a2 )
  1442. #define UlValidate_IStream_Commit( a1, a2 ) \
  1443. UlValidateParameters2( IStream_Commit, a1, a2 )
  1444. #define CheckParameters_IStream_Commit( a1, a2 ) \
  1445. CheckParameters2( IStream_Commit, a1, a2 )
  1446. #define Validate_IStream_Revert( a1 ) \
  1447. ValidateParameters1( IStream_Revert, a1 )
  1448. #define UlValidate_IStream_Revert( a1 ) \
  1449. UlValidateParameters1( IStream_Revert, a1 )
  1450. #define CheckParameters_IStream_Revert( a1 ) \
  1451. CheckParameters1( IStream_Revert, a1 )
  1452. #define Validate_IStream_LockRegion( a1, a2, a3, a4 ) \
  1453. ValidateParameters4( IStream_LockRegion, a1, a2, a3, a4 )
  1454. #define UlValidate_IStream_LockRegion( a1, a2, a3, a4 ) \
  1455. UlValidateParameters4( IStream_LockRegion, a1, a2, a3, a4 )
  1456. #define CheckParameters_IStream_LockRegion( a1, a2, a3, a4 ) \
  1457. CheckParameters4( IStream_LockRegion, a1, a2, a3, a4 )
  1458. #define Validate_IStream_UnlockRegion( a1, a2, a3, a4 ) \
  1459. ValidateParameters4( IStream_UnlockRegion, a1, a2, a3, a4 )
  1460. #define UlValidate_IStream_UnlockRegion( a1, a2, a3, a4 ) \
  1461. UlValidateParameters4( IStream_UnlockRegion, a1, a2, a3, a4 )
  1462. #define CheckParameters_IStream_UnlockRegion( a1, a2, a3, a4 ) \
  1463. CheckParameters4( IStream_UnlockRegion, a1, a2, a3, a4 )
  1464. #define Validate_IStream_Stat( a1, a2, a3 ) \
  1465. ValidateParameters3( IStream_Stat, a1, a2, a3 )
  1466. #define UlValidate_IStream_Stat( a1, a2, a3 ) \
  1467. UlValidateParameters3( IStream_Stat, a1, a2, a3 )
  1468. #define CheckParameters_IStream_Stat( a1, a2, a3 ) \
  1469. CheckParameters3( IStream_Stat, a1, a2, a3 )
  1470. #define Validate_IStream_Clone( a1, a2 ) \
  1471. ValidateParameters2( IStream_Clone, a1, a2 )
  1472. #define UlValidate_IStream_Clone( a1, a2 ) \
  1473. UlValidateParameters2( IStream_Clone, a1, a2 )
  1474. #define CheckParameters_IStream_Clone( a1, a2 ) \
  1475. CheckParameters2( IStream_Clone, a1, a2 )
  1476. /* IMAPIAdviseSink */
  1477. #define Validate_IMAPIAdviseSink_OnNotify( a1, a2, a3 ) \
  1478. ValidateParameters3( IMAPIAdviseSink_OnNotify, a1, a2, a3 )
  1479. #define UlValidate_IMAPIAdviseSink_OnNotify( a1, a2, a3 ) \
  1480. UlValidateParameters3( IMAPIAdviseSink_OnNotify, a1, a2, a3 )
  1481. #define CheckParameters_IMAPIAdviseSink_OnNotify( a1, a2, a3 ) \
  1482. CheckParameters3( IMAPIAdviseSink_OnNotify, a1, a2, a3 )
  1483. #ifdef WIN16
  1484. HRESULT
  1485. PASCAL HrValidateParameters( METHODS eMethod, LPVOID FAR *ppFirstArg );
  1486. #elif defined(_X86_)
  1487. STDAPI HrValidateParameters( METHODS eMethod, LPVOID FAR *ppFirstArg );
  1488. #else
  1489. STDAPIV HrValidateParametersV( METHODS eMethod, ... );
  1490. STDAPIV HrValidateParametersValist( METHODS eMethod, va_list arglist );
  1491. #endif /* WIN16 */
  1492. #ifdef __cplusplus
  1493. }
  1494. #endif
  1495. #endif /* _INC_VALIDATE */