activex.pp 2.0 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667
  1. {$MODE OBJFPC}
  2. unit activex;
  3. interface
  4. {$ifdef HASINTERFACES}
  5. uses
  6. windows;
  7. type
  8. polestr = PWideChar;
  9. largeint = int64;
  10. tagSTATSTG = record
  11. pwcsName : POleStr;
  12. dwType : DWord;
  13. cbSize : Largeint;
  14. mtime : TFileTime;
  15. ctime : TFileTime;
  16. atime : TFileTime;
  17. grfMode : DWord;
  18. grfLocksSupported : DWord;
  19. clsid : TCLSID;
  20. grfStateBits : DWord;
  21. reserved : DWord;
  22. end;
  23. TStatStg = tagSTATSTG;
  24. PStatStg = ^TStatStg;
  25. STATSTG = TStatStg;
  26. ISequentialStream = interface(IUnknown)
  27. ['{0c733a30-2a1c-11ce-ade5-00aa0044773d}']
  28. function Read(pv : Pointer;cb : DWord;pcbRead : PDWord) : HRESULT;stdcall;
  29. function Write(pv : Pointer;cb : DWord;pcbWritten : PDWord): HRESULT;stdcall;
  30. end;
  31. IStream = interface(ISequentialStream)
  32. ['{0000000C-0000-0000-C000-000000000046}']
  33. function Seek(dlibMove : Largeint; dwOrigin: Longint;
  34. out libNewPosition : Largeint): HResult; stdcall;
  35. function SetSize(libNewSize : Largeint) : HRESULT;stdcall;
  36. function CopyTo(stm: IStream;cb : Largeint;out cbRead : Largeint;
  37. out cbWritten: Largeint) : HRESULT;stdcall;
  38. function Commit(grfCommitFlags : Longint) : HRESULT; stdcall;
  39. function Revert : HRESULT; stdcall;
  40. function LockRegion(libOffset : Largeint;cb : Largeint;
  41. dwLockType: Longint) : HRESULT;stdcall;
  42. function UnlockRegion(libOffset: Largeint;cb: Largeint;
  43. dwLockType: Longint) : HRESULT;stdcall;
  44. function Stat(out statstg : TStatStg; grfStatFlag: Longint): HRESULT;stdcall;
  45. function Clone(out stm : IStream) : HRESULT; stdcall;
  46. end;
  47. {$endif HASINTERFACES}
  48. implementation
  49. end.
  50. {
  51. $Log$
  52. Revision 1.1 2001-08-19 21:02:02 florian
  53. * fixed and added a lot of stuff to get the Jedi DX( headers
  54. compiled
  55. }