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.

472 lines
24 KiB

  1. /*
  2. * M A P I D B G . H
  3. *
  4. * Debugging support for MAPI service providers.
  5. * Support functions are implemented in MAPIDBG.C.
  6. *
  7. * Copyright 1993-1995 Microsoft Corporation. All Rights Reserved.
  8. */
  9. #ifndef __MAPIDBG_H_
  10. #define __MAPIDBG_H_
  11. /*
  12. * Debugging Macros -------------------------------------------------------
  13. *
  14. * IFDBG(x) Results in the expression x if DEBUG is defined, or
  15. * to nothing if DEBUG is not defined
  16. *
  17. * IFNDBG(x) Results in the expression x if DEBUG is not defined,
  18. * or to nothing if DEBUG is defined
  19. *
  20. * Unreferenced(a) Causes a to be referenced so that the compiler
  21. * doesn't issue warnings about unused local variables
  22. * which exist but are reserved for future use (eg
  23. * ulFlags in many cases)
  24. */
  25. #if defined(DEBUG)
  26. #define IFDBG(x) x
  27. #define IFNDBG(x)
  28. #else
  29. #define IFDBG(x)
  30. #define IFNDBG(x) x
  31. #endif
  32. #ifdef __cplusplus
  33. #define EXTERN_C_BEGIN extern "C" {
  34. #define EXTERN_C_END }
  35. #else
  36. #define EXTERN_C_BEGIN
  37. #define EXTERN_C_END
  38. #endif
  39. #define dimensionof(a) (sizeof(a)/sizeof(*(a)))
  40. #define Unreferenced(a) ((void)(a))
  41. typedef long SCODE;
  42. typedef unsigned long ULONG;
  43. typedef unsigned long DWORD;
  44. /*
  45. * Assert Macros ---------------------------------------------------------
  46. *
  47. * Assert(a) Displays a message indicating the file and line number
  48. * of this Assert() if a == 0. OK'ing an assert traps
  49. * into the debugger.
  50. *
  51. * AssertSz(a,sz) Works like an Assert(), but displays the string sz
  52. * along with the file and line number.
  53. *
  54. * Side asserts A side assert works like an Assert(), but evaluates
  55. * 'a' even when asserts are not enabled.
  56. *
  57. * NF asserts A NF (Non-Fatal) assert works like an Assert(), but
  58. * continues instead of trapping into the debugger when
  59. * OK'ed.
  60. */
  61. #if defined(DEBUG) || defined(ASSERTS_ENABLED)
  62. #define IFTRAP(x) x
  63. #else
  64. #define IFTRAP(x) 0
  65. #endif
  66. #define Trap() IFTRAP(DebugTrapFn(1,__FILE__,__LINE__,"Trap"))
  67. #define TrapSz(psz) IFTRAP(DebugTrapFn(1,__FILE__,__LINE__,psz))
  68. #define TrapSz1(psz,a1) IFTRAP(DebugTrapFn(1,__FILE__,__LINE__,psz,a1))
  69. #define TrapSz2(psz,a1,a2) IFTRAP(DebugTrapFn(1,__FILE__,__LINE__,psz,a1,a2))
  70. #define TrapSz3(psz,a1,a2,a3) IFTRAP(DebugTrapFn(1,__FILE__,__LINE__,psz,a1,a2,a3))
  71. #define TrapSz4(psz,a1,a2,a3,a4) IFTRAP(DebugTrapFn(1,__FILE__,__LINE__,psz,a1,a2,a3,a4))
  72. #define TrapSz5(psz,a1,a2,a3,a4,a5) IFTRAP(DebugTrapFn(1,__FILE__,__LINE__,psz,a1,a2,a3,a4,a5))
  73. #define TrapSz6(psz,a1,a2,a3,a4,a5,a6) IFTRAP(DebugTrapFn(1,__FILE__,__LINE__,psz,a1,a2,a3,a4,a5,a6))
  74. #define TrapSz7(psz,a1,a2,a3,a4,a5,a6,a7) IFTRAP(DebugTrapFn(1,__FILE__,__LINE__,psz,a1,a2,a3,a4,a5,a6,a7))
  75. #define TrapSz8(psz,a1,a2,a3,a4,a5,a6,a7,a8) IFTRAP(DebugTrapFn(1,__FILE__,__LINE__,psz,a1,a2,a3,a4,a5,a6,a7,a8))
  76. #define TrapSz9(psz,a1,a2,a3,a4,a5,a6,a7,a8,a9) IFTRAP(DebugTrapFn(1,__FILE__,__LINE__,psz,a1,a2,a3,a4,a5,a6,a7,a8,a9))
  77. #define Assert(t) IFTRAP(((t) ? 0 : DebugTrapFn(1,__FILE__,__LINE__,"Assertion Failure: " #t),0))
  78. #define AssertSz(t,psz) IFTRAP(((t) ? 0 : DebugTrapFn(1,__FILE__,__LINE__,psz),0))
  79. #define AssertSz1(t,psz,a1) IFTRAP(((t) ? 0 : DebugTrapFn(1,__FILE__,__LINE__,psz,a1),0))
  80. #define AssertSz2(t,psz,a1,a2) IFTRAP(((t) ? 0 : DebugTrapFn(1,__FILE__,__LINE__,psz,a1,a2),0))
  81. #define AssertSz3(t,psz,a1,a2,a3) IFTRAP(((t) ? 0 : DebugTrapFn(1,__FILE__,__LINE__,psz,a1,a2,a3),0))
  82. #define AssertSz4(t,psz,a1,a2,a3,a4) IFTRAP(((t) ? 0 : DebugTrapFn(1,__FILE__,__LINE__,psz,a1,a2,a3,a4),0))
  83. #define AssertSz5(t,psz,a1,a2,a3,a4,a5) IFTRAP(((t) ? 0 : DebugTrapFn(1,__FILE__,__LINE__,psz,a1,a2,a3,a4,a5),0))
  84. #define AssertSz6(t,psz,a1,a2,a3,a4,a5,a6) IFTRAP(((t) ? 0 : DebugTrapFn(1,__FILE__,__LINE__,psz,a1,a2,a3,a4,a5,a6),0))
  85. #define AssertSz7(t,psz,a1,a2,a3,a4,a5,a6,a7) IFTRAP(((t) ? 0 : DebugTrapFn(1,__FILE__,__LINE__,psz,a1,a2,a3,a4,a5,a6,a7),0))
  86. #define AssertSz8(t,psz,a1,a2,a3,a4,a5,a6,a7,a8) IFTRAP(((t) ? 0 : DebugTrapFn(1,__FILE__,__LINE__,psz,a1,a2,a3,a4,a5,a6,a7,a8),0))
  87. #define AssertSz9(t,psz,a1,a2,a3,a4,a5,a6,a7,a8,a9) IFTRAP(((t) ? 0 : DebugTrapFn(1,__FILE__,__LINE__,psz,a1,a2,a3,a4,a5,a6,a7,a8,a9),0))
  88. #define SideAssert(t) ((t) ? 0 : IFTRAP(DebugTrapFn(1,__FILE__,__LINE__,"Assertion Failure: " #t)),0)
  89. #define SideAssertSz(t,psz) ((t) ? 0 : IFTRAP(DebugTrapFn(1,__FILE__,__LINE__,psz)),0)
  90. #define SideAssertSz1(t,psz,a1) ((t) ? 0 : IFTRAP(DebugTrapFn(1,__FILE__,__LINE__,psz,a1)),0)
  91. #define SideAssertSz2(t,psz,a1,a2) ((t) ? 0 : IFTRAP(DebugTrapFn(1,__FILE__,__LINE__,psz,a1,a2)),0)
  92. #define SideAssertSz3(t,psz,a1,a2,a3) ((t) ? 0 : IFTRAP(DebugTrapFn(1,__FILE__,__LINE__,psz,a1,a2,a3)),0)
  93. #define SideAssertSz4(t,psz,a1,a2,a3,a4) ((t) ? 0 : IFTRAP(DebugTrapFn(1,__FILE__,__LINE__,psz,a1,a2,a3,a4)),0)
  94. #define SideAssertSz5(t,psz,a1,a2,a3,a4,a5) ((t) ? 0 : IFTRAP(DebugTrapFn(1,__FILE__,__LINE__,psz,a1,a2,a3,a4,a5)),0)
  95. #define SideAssertSz6(t,psz,a1,a2,a3,a4,a5,a6) ((t) ? 0 : IFTRAP(DebugTrapFn(1,__FILE__,__LINE__,psz,a1,a2,a3,a4,a5,a6)),0)
  96. #define SideAssertSz7(t,psz,a1,a2,a3,a4,a5,a6,a7) ((t) ? 0 : IFTRAP(DebugTrapFn(1,__FILE__,__LINE__,psz,a1,a2,a3,a4,a5,a6,a7)),0)
  97. #define SideAssertSz8(t,psz,a1,a2,a3,a4,a5,a6,a7,a8) ((t) ? 0 : IFTRAP(DebugTrapFn(1,__FILE__,__LINE__,psz,a1,a2,a3,a4,a5,a6,a7,a8)),0)
  98. #define SideAssertSz9(t,psz,a1,a2,a3,a4,a5,a6,a7,a8,a9) ((t) ? 0 : IFTRAP(DebugTrapFn(1,__FILE__,__LINE__,psz,a1,a2,a3,a4,a5,a6,a7,a8,a9)),0)
  99. #define NFAssert(t) IFTRAP(((t) ? 0 : DebugTrapFn(0,__FILE__,__LINE__,"Assertion Failure: " #t),0))
  100. #define NFAssertSz(t,psz) IFTRAP(((t) ? 0 : DebugTrapFn(0,__FILE__,__LINE__,psz),0))
  101. #define NFAssertSz1(t,psz,a1) IFTRAP(((t) ? 0 : DebugTrapFn(0,__FILE__,__LINE__,psz,a1),0))
  102. #define NFAssertSz2(t,psz,a1,a2) IFTRAP(((t) ? 0 : DebugTrapFn(0,__FILE__,__LINE__,psz,a1,a2),0))
  103. #define NFAssertSz3(t,psz,a1,a2,a3) IFTRAP(((t) ? 0 : DebugTrapFn(0,__FILE__,__LINE__,psz,a1,a2,a3),0))
  104. #define NFAssertSz4(t,psz,a1,a2,a3,a4) IFTRAP(((t) ? 0 : DebugTrapFn(0,__FILE__,__LINE__,psz,a1,a2,a3,a4),0))
  105. #define NFAssertSz5(t,psz,a1,a2,a3,a4,a5) IFTRAP(((t) ? 0 : DebugTrapFn(0,__FILE__,__LINE__,psz,a1,a2,a3,a4,a5),0))
  106. #define NFAssertSz6(t,psz,a1,a2,a3,a4,a5,a6) IFTRAP(((t) ? 0 : DebugTrapFn(0,__FILE__,__LINE__,psz,a1,a2,a3,a4,a5,a6),0))
  107. #define NFAssertSz7(t,psz,a1,a2,a3,a4,a5,a6,a7) IFTRAP(((t) ? 0 : DebugTrapFn(0,__FILE__,__LINE__,psz,a1,a2,a3,a4,a5,a6,a7),0))
  108. #define NFAssertSz8(t,psz,a1,a2,a3,a4,a5,a6,a7,a8) IFTRAP(((t) ? 0 : DebugTrapFn(0,__FILE__,__LINE__,psz,a1,a2,a3,a4,a5,a6,a7,a8),0))
  109. #define NFAssertSz9(t,psz,a1,a2,a3,a4,a5,a6,a7,a8,a9) IFTRAP(((t) ? 0 : DebugTrapFn(0,__FILE__,__LINE__,psz,a1,a2,a3,a4,a5,a6,a7,a8,a9),0))
  110. #define NFSideAssert(t) ((t) ? 0 : IFTRAP(DebugTrapFn(0,__FILE__,__LINE__,"Assertion Failure: " #t)),0)
  111. #define NFSideAssertSz(t,psz) ((t) ? 0 : IFTRAP(DebugTrapFn(0,__FILE__,__LINE__,psz)),0)
  112. #define NFSideAssertSz1(t,psz,a1) ((t) ? 0 : IFTRAP(DebugTrapFn(0,__FILE__,__LINE__,psz,a1)),0)
  113. #define NFSideAssertSz2(t,psz,a1,a2) ((t) ? 0 : IFTRAP(DebugTrapFn(0,__FILE__,__LINE__,psz,a1,a2)),0)
  114. #define NFSideAssertSz3(t,psz,a1,a2,a3) ((t) ? 0 : IFTRAP(DebugTrapFn(0,__FILE__,__LINE__,psz,a1,a2,a3)),0)
  115. #define NFSideAssertSz4(t,psz,a1,a2,a3,a4) ((t) ? 0 : IFTRAP(DebugTrapFn(0,__FILE__,__LINE__,psz,a1,a2,a3,a4)),0)
  116. #define NFSideAssertSz5(t,psz,a1,a2,a3,a4,a5) ((t) ? 0 : IFTRAP(DebugTrapFn(0,__FILE__,__LINE__,psz,a1,a2,a3,a4,a5)),0)
  117. #define NFSideAssertSz6(t,psz,a1,a2,a3,a4,a5,a6) ((t) ? 0 : IFTRAP(DebugTrapFn(0,__FILE__,__LINE__,psz,a1,a2,a3,a4,a5,a6)),0)
  118. #define NFSideAssertSz7(t,psz,a1,a2,a3,a4,a5,a6,a7) ((t) ? 0 : IFTRAP(DebugTrapFn(0,__FILE__,__LINE__,psz,a1,a2,a3,a4,a5,a6,a7)),0)
  119. #define NFSideAssertSz8(t,psz,a1,a2,a3,a4,a5,a6,a7,a8) ((t) ? 0 : IFTRAP(DebugTrapFn(0,__FILE__,__LINE__,psz,a1,a2,a3,a4,a5,a6,a7,a8)),0)
  120. #define NFSideAssertSz9(t,psz,a1,a2,a3,a4,a5,a6,a7,a8,a9) ((t) ? 0 : IFTRAP(DebugTrapFn(0,__FILE__,__LINE__,psz,a1,a2,a3,a4,a5,a6,a7,a8,a9)),0)
  121. /*
  122. * Trace Macros ------------------------------------------------------------
  123. *
  124. * DebugTrace Use for arbitrary formatted output. It
  125. * takes exactly the same arguments as the
  126. * Windows wsprintf() function.
  127. * DebugTraceResult Shorthand for error tracing with an
  128. * HRESULT. Arguments are the name of the
  129. * function (not quoted) and the HRESULT.
  130. * DebugTraceSc Shorthand for error tracing with an
  131. * SCODE. Arguments are the name of the
  132. * function (not quoted) and the SCODE.
  133. * DebugTraceArg Shorthand for invalid parameter
  134. * tracing. Arguments are the name of the
  135. * function (not quoted) and a quoted
  136. * string describing the bad parameter.
  137. */
  138. #if defined(DEBUG) || defined(TRACES_ENABLED)
  139. #define IFTRACE(x) x
  140. #define DebugTrace DebugTraceFn
  141. #else
  142. #define IFTRACE(x) 0
  143. #define DebugTrace 1?0:DebugTraceFn
  144. #endif
  145. #define DebugTraceResult(f,hr) IFTRACE(((hr) ? DebugTraceFn(#f " returns 0x%08lX %s\n", GetScode(hr), SzDecodeScode(GetScode(hr))) : 0))
  146. #define DebugTraceSc(f,sc) IFTRACE(((sc) ? DebugTraceFn(#f " returns 0x%08lX %s\n", sc, SzDecodeScode(sc)) : 0))
  147. #define DebugTraceArg(f,s) IFTRACE(DebugTraceFn(#f ": bad parameter: " s "\n"))
  148. #define DebugTraceLine() IFTRACE(DebugTraceFn("File %s, Line %i \n",__FILE__,__LINE__))
  149. #define DebugTraceProblems(sz, rgprob) IFTRACE(DebugTraceProblemsFn(sz, rgprob))
  150. #define TraceSz(psz) IFTRACE(DebugTraceFn("~" psz))
  151. #define TraceSz1(psz,a1) IFTRACE(DebugTraceFn("~" psz,a1))
  152. #define TraceSz2(psz,a1,a2) IFTRACE(DebugTraceFn("~" psz,a1,a2))
  153. #define TraceSz3(psz,a1,a2,a3) IFTRACE(DebugTraceFn("~" psz,a1,a2,a3))
  154. #define TraceSz4(psz,a1,a2,a3,a4) IFTRACE(DebugTraceFn("~" psz,a1,a2,a3,a4))
  155. #define TraceSz5(psz,a1,a2,a3,a4,a5) IFTRACE(DebugTraceFn("~" psz,a1,a2,a3,a4,a5))
  156. #define TraceSz6(psz,a1,a2,a3,a4,a5,a6) IFTRACE(DebugTraceFn("~" psz,a1,a2,a3,a4,a5,a6))
  157. #define TraceSz7(psz,a1,a2,a3,a4,a5,a6,a7) IFTRACE(DebugTraceFn("~" psz,a1,a2,a3,a4,a5,a6,a7))
  158. #define TraceSz8(psz,a1,a2,a3,a4,a5,a6,a7,a8) IFTRACE(DebugTraceFn("~" psz,a1,a2,a3,a4,a5,a6,a7,a8))
  159. #define TraceSz9(psz,a1,a2,a3,a4,a5,a6,a7,a8,a9) IFTRACE(DebugTraceFn("~" psz,a1,a2,a3,a4,a5,a6,a7,a8,a9))
  160. /* Debugging Functions ---------------------------------------------------- */
  161. EXTERN_C_BEGIN
  162. #ifdef WIN16
  163. #define EXPORTDBG __export
  164. #else
  165. #define EXPORTDBG
  166. #endif
  167. int EXPORTDBG __cdecl DebugTrapFn(int fFatal, char *pszFile, int iLine, char *pszFormat, ...);
  168. int EXPORTDBG __cdecl DebugTraceFn(char *pszFormat, ...);
  169. void EXPORTDBG __cdecl DebugTraceProblemsFn(char *sz, void *rgprob);
  170. char * EXPORTDBG __cdecl SzDecodeScodeFn(SCODE sc);
  171. char * EXPORTDBG __cdecl SzDecodeUlPropTypeFn(unsigned long ulPropType);
  172. char * EXPORTDBG __cdecl SzDecodeUlPropTagFn(unsigned long ulPropTag);
  173. unsigned long EXPORTDBG __cdecl UlPropTagFromSzFn(char *psz);
  174. SCODE EXPORTDBG __cdecl ScodeFromSzFn(char *psz);
  175. void * EXPORTDBG __cdecl DBGMEM_EncapsulateFn(void * pmalloc, char *pszSubsys, int fCheckOften);
  176. void EXPORTDBG __cdecl DBGMEM_ShutdownFn(void * pmalloc);
  177. void EXPORTDBG __cdecl DBGMEM_CheckMemFn(void * pmalloc, int fReportOrphans);
  178. void EXPORTDBG __cdecl DBGMEM_NoLeakDetectFn(void * pmalloc, void *pv);
  179. void EXPORTDBG __cdecl DBGMEM_SetFailureAtFn(void * pmalloc, ULONG ulFailureAt);
  180. SCODE EXPORTDBG __cdecl ScCheckScFn(SCODE, SCODE *, char *, char *, int);
  181. void GetCallStack(DWORD *, int, int);
  182. void * VMAlloc(ULONG);
  183. void * VMAllocEx(ULONG, ULONG);
  184. void * VMRealloc(void *, ULONG);
  185. void * VMReallocEx(void *, ULONG, ULONG);
  186. ULONG VMGetSize(void *);
  187. ULONG VMGetSizeEx(void *, ULONG);
  188. void VMFree(void *);
  189. void VMFreeEx(void *, ULONG);
  190. EXTERN_C_END
  191. /*
  192. * Debugging Macros -------------------------------------------------------
  193. *
  194. * SzDecodeScode Returns the string name of an SCODE
  195. * SzDecodeUlPropTag Returns the string name of a property
  196. * tag
  197. * UlPropTagFromSz Given a property tag's name, returns
  198. * its value
  199. * ScodeFromSz Given an SCODE's name, returns its
  200. * value
  201. *
  202. * DBGMEM_Encapsulate Given an IMalloc interface, adds heap-
  203. * checking functionality and returns a
  204. * wrapped interface
  205. * DBGMEM_Shutdown Undoes DBGMEM_Encapsulate, and prints
  206. * out information on any allocations made
  207. * since the interface was encapsulated
  208. * that have not yet been released.
  209. * DBGMEM_CheckMem Checks all memory allocated on the heap,
  210. * and optionally reports leaked blocks.
  211. * DBGMEM_NoLeakDetect Prevents a block from appearing on the leak
  212. * report. Pass NULL for pv to inhibit leak
  213. * reports at all from this heap.
  214. */
  215. #ifdef DEBUG
  216. #define SzDecodeScode(_sc) SzDecodeScodeFn(_sc)
  217. #define SzDecodeUlPropType(_ulPropType) SzDecodeUlPropTypeFn(_ulPropType)
  218. #define SzDecodeUlPropTag(_ulPropTag) SzDecodeUlPropTagFn(_ulPropTag)
  219. #define UlPropTagFromSz(_sz) UlPropTagFromSzFn(_sz)
  220. #define ScodeFromSz(_sz) ScodeFromSzFn(_sz)
  221. #define DBGMEM_Encapsulate(pm, psz, f) DBGMEM_EncapsulateFn(pm, psz, f)
  222. #define DBGMEM_Shutdown(pm) DBGMEM_ShutdownFn(pm)
  223. #define DBGMEM_CheckMem(pm, f) DBGMEM_CheckMemFn(pm, f)
  224. #define DBGMEM_NoLeakDetect(pm, pv) DBGMEM_NoLeakDetectFn(pm, pv)
  225. #define DBGMEM_SetFailureAt(pm, ul) DBGMEM_SetFailureAtFn(pm, ul)
  226. #else
  227. #define SzDecodeScode(_sc) (0)
  228. #define SzDecodeUlPropType(_ulPropType) (0)
  229. #define SzDecodeUlPropTag(_ulPropTag) (0)
  230. #define UlPropTagFromSz(_sz) (0)
  231. #define ScodeFromSz(_sz) (0)
  232. #if defined(__cplusplus) && !defined(CINTERFACE)
  233. #define DBGMEM_Encapsulate(pmalloc, pszSubsys, fCheckOften) \
  234. ((pmalloc)->AddRef(), (pmalloc))
  235. #define DBGMEM_Shutdown(pmalloc) \
  236. ((pmalloc)->Release())
  237. #else
  238. #define DBGMEM_Encapsulate(pmalloc, pszSubsys, fCheckOften) \
  239. ((pmalloc)->lpVtbl->AddRef(pmalloc), (pmalloc))
  240. #define DBGMEM_Shutdown(pmalloc) \
  241. ((pmalloc)->lpVtbl->Release(pmalloc))
  242. #endif
  243. #define DBGMEM_CheckMem(pm, f)
  244. #define DBGMEM_NoLeakDetect(pm, pv)
  245. #define DBGMEM_SetFailureAt(pm, ul)
  246. #endif
  247. /*
  248. * SCODE maps -------------------------------------------------------------
  249. *
  250. * ScCheckSc Given an SCODE and method name, verifies
  251. * that the SCODE can legally be returned from
  252. * thet method. Prints out a debug string if
  253. * it cannot.
  254. * HrCheckHr As ScCheckSc, for functions that return
  255. * HRESULT.
  256. */
  257. #if defined(DEBUG) && !defined(DOS)
  258. #define ScCheckSc(sc,fn) ScCheckScFn(sc,fn##_Scodes,#fn,__FILE__, __LINE__)
  259. #define HrCheckHr(hr,fn) HrCheckSc(GetScode(hr),fn)
  260. #else
  261. #define ScCheckSc(sc,fn) (sc)
  262. #define HrCheckHr(hr,fn) (hr)
  263. #endif
  264. #define HrCheckSc(sc,fn) ResultFromScode(ScCheckSc(sc,fn))
  265. #if defined(DEBUG) && !defined(DOS)
  266. extern SCODE Common_Scodes[];
  267. extern SCODE MAPILogon_Scodes[];
  268. extern SCODE MAPIAllocateBuffer_Scodes[];
  269. extern SCODE MAPIAllocateMore_Scodes[];
  270. extern SCODE MAPIFreeBuffer_Scodes[];
  271. extern SCODE IUnknown_QueryInterface_Scodes[];
  272. extern SCODE IUnknown_AddRef_Scodes[];
  273. extern SCODE IUnknown_Release_Scodes[];
  274. extern SCODE IUnknown_GetLastError_Scodes[];
  275. extern SCODE IMAPIProp_CopyTo_Scodes[];
  276. extern SCODE IMAPIProp_CopyProps_Scodes[];
  277. extern SCODE IMAPIProp_DeleteProps_Scodes[];
  278. extern SCODE IMAPIProp_GetIDsFromNames_Scodes[];
  279. extern SCODE IMAPIProp_GetLastError_Scodes[];
  280. extern SCODE IMAPIProp_GetNamesFromIDs_Scodes[];
  281. extern SCODE IMAPIProp_GetPropList_Scodes[];
  282. extern SCODE IMAPIProp_GetProps_Scodes[];
  283. extern SCODE IMAPIProp_OpenProperty_Scodes[];
  284. extern SCODE IMAPIProp_SetProps_Scodes[];
  285. extern SCODE IMAPIProp_SaveChanges_Scodes[];
  286. extern SCODE IStream_Read_Scodes[];
  287. extern SCODE IStream_Write_Scodes[];
  288. extern SCODE IStream_Seek_Scodes[];
  289. extern SCODE IStream_SetSize_Scodes[];
  290. extern SCODE IStream_Tell_Scodes[];
  291. extern SCODE IStream_LockRegion_Scodes[];
  292. extern SCODE IStream_UnlockRegion_Scodes[];
  293. extern SCODE IStream_Clone_Scodes[];
  294. extern SCODE IStream_CopyTo_Scodes[];
  295. extern SCODE IStream_Revert_Scodes[];
  296. extern SCODE IStream_Stat_Scodes[];
  297. extern SCODE IStream_Commit_Scodes[];
  298. extern SCODE IMAPITable_GetLastError_Scodes[];
  299. extern SCODE IMAPITable_Advise_Scodes[];
  300. extern SCODE IMAPITable_Unadvise_Scodes[];
  301. extern SCODE IMAPITable_GetStatus_Scodes[];
  302. extern SCODE IMAPITable_SetColumns_Scodes[];
  303. extern SCODE IMAPITable_QueryColumns_Scodes[];
  304. extern SCODE IMAPITable_GetRowCount_Scodes[];
  305. extern SCODE IMAPITable_SeekRow_Scodes[];
  306. extern SCODE IMAPITable_SeekRowApprox_Scodes[];
  307. extern SCODE IMAPITable_QueryPosition_Scodes[];
  308. extern SCODE IMAPITable_FindRow_Scodes[];
  309. extern SCODE IMAPITable_Restrict_Scodes[];
  310. extern SCODE IMAPITable_CreateBookmark_Scodes[];
  311. extern SCODE IMAPITable_FreeBookmark_Scodes[];
  312. extern SCODE IMAPITable_SortTable_Scodes[];
  313. extern SCODE IMAPITable_QuerySortOrder_Scodes[];
  314. extern SCODE IMAPITable_QueryRows_Scodes[];
  315. extern SCODE IMAPITable_Abort_Scodes[];
  316. extern SCODE IMAPITable_ExpandRow_Scodes[];
  317. extern SCODE IMAPITable_CollapseRow_Scodes[];
  318. extern SCODE IMAPITable_WaitForCompletion_Scodes[];
  319. extern SCODE IMAPITable_GetCollapseState_Scodes[];
  320. extern SCODE IMAPITable_SetCollapseState_Scodes[];
  321. extern SCODE IMAPISession_LogOff_Scodes[];
  322. extern SCODE IMAPISession_Release_Scodes[];
  323. extern SCODE IMAPISession_GetLastError_Scodes[];
  324. extern SCODE IMAPISession_GetMsgStoresTable_Scodes[];
  325. extern SCODE IMAPISession_GetStatusTable_Scodes[];
  326. extern SCODE IMAPISession_OpenMsgStore_Scodes[];
  327. extern SCODE IMAPISession_OpenAddressBook_Scodes[];
  328. extern SCODE IMAPISession_OpenEntry_Scodes[];
  329. extern SCODE IMAPISession_OpenProfileSection_Scodes[];
  330. extern SCODE IMAPISession_Advise_Scodes[];
  331. extern SCODE IMAPISession_Unadvise_Scodes[];
  332. extern SCODE IMAPISession_CompareEntryIDs_Scodes[];
  333. extern SCODE IMAPISession_MessageOptions_Scodes[];
  334. extern SCODE IMAPISession_QueryDefaultMessageOpt_Scodes[];
  335. extern SCODE IMAPISession_EnumAdrTypes_Scodes[];
  336. extern SCODE IMAPISession_QueryIdentity_Scodes[];
  337. extern SCODE IMAPISession_OpenProfileSection_Scodes[];
  338. extern SCODE IMAPISession_GetStatusTable_Scodes[];
  339. extern SCODE IMsgStore_Advise_Scodes[] ;
  340. extern SCODE IMsgStore_Unadvise_Scodes[] ;
  341. extern SCODE IMsgStore_CompareEntryIDs_Scodes[] ;
  342. extern SCODE IMsgStore_OpenEntry_Scodes[] ;
  343. extern SCODE IMsgStore_SetReceiveFolder_Scodes[];
  344. extern SCODE IMsgStore_GetReceiveFolder_Scodes[];
  345. extern SCODE IMsgStore_GetReceiveFolderTable_Scodes[];
  346. extern SCODE IMsgStore_StoreLogoff_Scodes[];
  347. extern SCODE IMsgStore_AbortSubmit_Scodes[];
  348. extern SCODE IMsgStore_GetOutgoingQueue_Scodes[] ;
  349. extern SCODE IMsgStore_SetLockState_Scodes[] ;
  350. extern SCODE IMsgStore_FinishedMsg_Scodes[] ;
  351. extern SCODE IMsgStore_NotifyNewMail_Scodes[];
  352. extern SCODE IMAPIFolder_GetContentsTable_Scodes[];
  353. extern SCODE IMAPIFolder_GetHierarchyTable_Scodes[];
  354. extern SCODE IMAPIFolder_SaveContentsSort_Scodes[];
  355. extern SCODE IMAPIFolder_OpenEntry_Scodes[];
  356. extern SCODE IMAPIFolder_CreateMessage_Scodes[];
  357. extern SCODE IMAPIFolder_CopyMessages_Scodes[];
  358. extern SCODE IMAPIFolder_DeleteMessages_Scodes[];
  359. extern SCODE IMAPIFolder_CreateFolder_Scodes[];
  360. extern SCODE IMAPIFolder_CopyFolder_Scodes[];
  361. extern SCODE IMAPIFolder_DeleteFolder_Scodes[];
  362. extern SCODE IMAPIFolder_SetSearchCriteria_Scodes[];
  363. extern SCODE IMAPIFolder_GetSearchCriteria_Scodes[];
  364. extern SCODE IMAPIFolder_SetReadFlags_Scodes[];
  365. extern SCODE IMAPIFolder_GetMessageStatus_Scodes[];
  366. extern SCODE IMAPIFolder_SetMessageStatus_Scodes[];
  367. extern SCODE IMAPIFolder_EmptyFolder_Scodes[];
  368. extern SCODE IMessage_SaveChanges_Scodes[];
  369. extern SCODE IMessage_GetAttachmentTable_Scodes[];
  370. extern SCODE IMessage_OpenAttach_Scodes[];
  371. extern SCODE IMessage_CreateAttach_Scodes[];
  372. extern SCODE IMessage_DeleteAttach_Scodes[];
  373. extern SCODE IMessage_GetRecipientTable_Scodes[];
  374. extern SCODE IMessage_ModifyRecipients_Scodes[];
  375. extern SCODE IMessage_SubmitMessage_Scodes[];
  376. extern SCODE IMessage_SetReadFlag_Scodes[];
  377. extern SCODE IAttach_SaveChanges_Scodes[];
  378. extern SCODE IAddrBook_OpenEntry_Scodes[];
  379. extern SCODE IAddrBook_CompareEntryIDs_Scodes[];
  380. extern SCODE IAddrBook_CreateOneOff_Scodes[];
  381. extern SCODE IAddrBook_ResolveName_Scodes[];
  382. extern SCODE IAddrBook_Address_Scodes[];
  383. extern SCODE IAddrBook_Details_Scodes[];
  384. extern SCODE IAddrBook_RecipOptions_Scodes[];
  385. extern SCODE IAddrBook_QueryDefaultRecipOpt_Scodes[];
  386. extern SCODE IAddrBook_Address_Scodes[];
  387. extern SCODE IAddrBook_ButtonPress_Scodes[];
  388. extern SCODE IABContainer_GetContentsTable_Scodes[];
  389. extern SCODE IABContainer_GetHierarchyTable_Scodes[];
  390. extern SCODE INotifObj_ChangeEvMask_Scodes[];
  391. extern SCODE IMAPIStatus_ChangePassword_Scodes[];
  392. extern SCODE IMAPIStatus_FlushQueues_Scodes[];
  393. extern SCODE IMAPIStatus_SettingsDialog_Scodes[];
  394. extern SCODE IMAPIStatus_ValidateState_Scodes[];
  395. extern SCODE IMSProvider_Logon_Scodes[];
  396. extern SCODE IMSProvider_Deinit_Scodes[];
  397. extern SCODE IMSProvider_Init_Scodes[];
  398. extern SCODE IMSProvider_SpoolerLogon_Scodes[];
  399. extern SCODE IMSProvider_Shutdown_Scodes[];
  400. extern SCODE SMAPI_MAPILogon_Scodes[];
  401. extern SCODE SMAPI_MAPILogoff_Scodes[];
  402. extern SCODE SMAPI_MAPIFreeBuffer_Scodes[];
  403. extern SCODE SMAPI_MAPISendMail_Scodes[];
  404. extern SCODE SMAPI_MAPISendDocuments_Scodes[];
  405. extern SCODE SMAPI_MAPIFindNext_Scodes[];
  406. extern SCODE SMAPI_MAPIReadMail_Scodes[];
  407. extern SCODE SMAPI_MAPISaveMail_Scodes[];
  408. extern SCODE SMAPI_MAPIDeleteMail_Scodes[];
  409. extern SCODE SMAPI_MAPIAddress_Scodes[];
  410. extern SCODE SMAPI_MAPIResolveName_Scodes[];
  411. extern SCODE SMAPI_MAPIDetails_Scodes[];
  412. extern SCODE IMSLogon_OpenEntry_Scodes[];
  413. extern SCODE IMSLogon_OpenStatusEntry_Scodes[];
  414. extern SCODE IMSLogon_CompareEntryIDs_Scodes[];
  415. extern SCODE IMSLogon_Advise_Scodes[];
  416. extern SCODE IMSLogon_Unadvise_Scodes[];
  417. extern SCODE IMSLogon_Logoff_Scodes[];
  418. #endif
  419. /* ------------------------------------------------------------------------ */
  420. #endif