WabMem.pas 3.9 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990
  1. {******************************************************************}
  2. { }
  3. { Borland Delphi Runtime Library }
  4. { Windows Address Book (WAB) functions interface unit }
  5. { }
  6. { Portions created by Microsoft are }
  7. { Copyright (C) 1995-2000 Microsoft Corporation. }
  8. { All Rights Reserved. }
  9. { }
  10. { The original file is: wabmem.h, released 31 Jan 2000. }
  11. { The original Pascal code is: WabMem.pas, released 15 Mar 2000. }
  12. { The initial developer of the Pascal code is Petr Vones }
  13. { (petr.v@mujmail.cz). }
  14. { }
  15. { Portions created by Petr Vones are }
  16. { Copyright (C) 2000 Petr Vones }
  17. { }
  18. { Obtained through: }
  19. { }
  20. { Joint Endeavour of Delphi Innovators (Project JEDI) }
  21. { }
  22. { You may retrieve the latest version of this file at the Project }
  23. { JEDI home page, located at http://delphi-jedi.org }
  24. { }
  25. { The contents of this file are used with permission, subject to }
  26. { the Mozilla Public License Version 1.1 (the "License"); you may }
  27. { not use this file except in compliance with the License. You may }
  28. { obtain a copy of the License at }
  29. { http://www.mozilla.org/MPL/MPL-1.1.html }
  30. { }
  31. { Software distributed under the License is distributed on an }
  32. { "AS IS" basis, WITHOUT WARRANTY OF ANY KIND, either express or }
  33. { implied. See the License for the specific language governing }
  34. { rights and limitations under the License. }
  35. { }
  36. {******************************************************************}
  37. unit WabMem;
  38. interface
  39. uses
  40. Windows, ActiveX, WabApi;
  41. {$I WAB.INC}
  42. {$ALIGN ON}
  43. {$MINENUMSIZE 4}
  44. {$WEAKPACKAGEUNIT}
  45. (*$HPPEMIT '#include <wabmem.h>'*)
  46. type
  47. PMapiAllocateBuffer = ^TMapiAllocateBuffer;
  48. MAPIALLOCATEBUFFER = function (cbSize: ULONG; var lppBuffer: Pointer): SCODE; stdcall;
  49. {$EXTERNALSYM MAPIALLOCATEBUFFER}
  50. TMapiAllocateBuffer = MAPIALLOCATEBUFFER;
  51. PMapiAllocateMore = ^TMapiAllocateMore;
  52. MAPIALLOCATEMORE = function (cbSize: ULONG; lpObject: Pointer;
  53. var lppBuffer: Pointer): SCODE; stdcall;
  54. {$EXTERNALSYM MAPIALLOCATEMORE}
  55. TMapiAllocateMore = MAPIALLOCATEMORE;
  56. PMapiFreeBuffer = ^TMapiFreeBuffer;
  57. MAPIFREEBUFFER = function (lpBuffer: Pointer): SCODE; stdcall;
  58. {$EXTERNALSYM MAPIFREEBUFFER}
  59. TMapiFreeBuffer = MAPIFREEBUFFER;
  60. PWabAllocateBuffer = ^TWabAllocateBuffer;
  61. WABALLOCATEBUFFER = function (lpWABObject: IWabObject; cbSize: ULONG;
  62. var lppBuffer: Pointer): SCODE; stdcall;
  63. {$EXTERNALSYM WABALLOCATEBUFFER}
  64. TWabAllocateBuffer = WABALLOCATEBUFFER;
  65. PWabAllocateMore = ^TWabAllocateMore;
  66. WABALLOCATEMORE = function (lpWABObject: IWabObject; cbSize: ULONG;
  67. lpObject: Pointer; var lppBuffer: Pointer): SCODE; stdcall;
  68. {$EXTERNALSYM WABALLOCATEMORE}
  69. TWabAllocateMore = WABALLOCATEMORE;
  70. PWabFreeBuffer = ^TWabFreeBuffer;
  71. WABFREEBUFFER = function (lpWABObject: IWabObject; lppBuffer: Pointer): SCODE; stdcall;
  72. {$EXTERNALSYM WABFREEBUFFER}
  73. TWabFreeBuffer = WABFREEBUFFER;
  74. implementation
  75. end.