RealOAIEContext_TLB.pas 4.9 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115
  1. unit IEContext_TLB;
  2. // ************************************************************************ //
  3. // WARNING
  4. // -------
  5. // The types declared in this file were generated from data read from a
  6. // Type Library. If this type library is explicitly or indirectly (via
  7. // another type library referring to this type library) re-imported, or the
  8. // 'Refresh' command of the Type Library Editor activated while editing the
  9. // Type Library, the contents of this file will be regenerated and all
  10. // manual modifications will be lost.
  11. // ************************************************************************ //
  12. // $Rev: 8291 $
  13. // File generated on 2016/5/30 18:08:12 from Type Library described below.
  14. // ************************************************************************ //
  15. // Type Lib: D:\DelphiProjects\RealICQClient\COM\IEContext\IEContext.tlb (1)
  16. // LIBID: {8564F7B8-40DD-4AF6-A8B7-217F5F36F771}
  17. // LCID: 0
  18. // Helpfile:
  19. // HelpString: IEContext Library
  20. // DepndLst:
  21. // (1) v2.0 stdole, (C:\Windows\System32\stdole2.tlb)
  22. // ************************************************************************ //
  23. {$TYPEDADDRESS OFF} // Unit must be compiled without type-checked pointers.
  24. {$WARN SYMBOL_PLATFORM OFF}
  25. {$WRITEABLECONST ON}
  26. {$VARPROPSETTER ON}
  27. interface
  28. uses Windows, ActiveX, Classes, Graphics, StdVCL, Variants;
  29. // *********************************************************************//
  30. // GUIDS declared in the TypeLibrary. Following prefixes are used:
  31. // Type Libraries : LIBID_xxxx
  32. // CoClasses : CLASS_xxxx
  33. // DISPInterfaces : DIID_xxxx
  34. // Non-DISP interfaces: IID_xxxx
  35. // *********************************************************************//
  36. const
  37. // TypeLibrary Major and minor versions
  38. IEContextMajorVersion = 1;
  39. IEContextMinorVersion = 0;
  40. LIBID_IEContext: TGUID = '{8564F7B8-40DD-4AF6-A8B7-217F5F36F771}';
  41. IID_IIEContextMenu: TGUID = '{B3CA8622-D314-48B2-8FE9-8EBD67AAE259}';
  42. CLASS_IEContextMenu: TGUID = '{02F7709B-66CA-4DF5-9ECB-1051B45B4417}';
  43. type
  44. // *********************************************************************//
  45. // Forward declaration of types defined in TypeLibrary
  46. // *********************************************************************//
  47. IIEContextMenu = interface;
  48. IIEContextMenuDisp = dispinterface;
  49. // *********************************************************************//
  50. // Declaration of CoClasses defined in Type Library
  51. // (NOTE: Here we map each CoClass to its Default Interface)
  52. // *********************************************************************//
  53. IEContextMenu = IIEContextMenu;
  54. // *********************************************************************//
  55. // Interface: IIEContextMenu
  56. // Flags: (4416) Dual OleAutomation Dispatchable
  57. // GUID: {B3CA8622-D314-48B2-8FE9-8EBD67AAE259}
  58. // *********************************************************************//
  59. IIEContextMenu = interface(IDispatch)
  60. ['{B3CA8622-D314-48B2-8FE9-8EBD67AAE259}']
  61. procedure AddFace(FileName: OleVariant); safecall;
  62. procedure OpenUmc; safecall;
  63. end;
  64. // *********************************************************************//
  65. // DispIntf: IIEContextMenuDisp
  66. // Flags: (4416) Dual OleAutomation Dispatchable
  67. // GUID: {B3CA8622-D314-48B2-8FE9-8EBD67AAE259}
  68. // *********************************************************************//
  69. IIEContextMenuDisp = dispinterface
  70. ['{B3CA8622-D314-48B2-8FE9-8EBD67AAE259}']
  71. procedure AddFace(FileName: OleVariant); dispid 201;
  72. procedure OpenUmc; dispid 202;
  73. end;
  74. // *********************************************************************//
  75. // The Class CoIEContextMenu provides a Create and CreateRemote method to
  76. // create instances of the default interface IIEContextMenu exposed by
  77. // the CoClass IEContextMenu. The functions are intended to be used by
  78. // clients wishing to automate the CoClass objects exposed by the
  79. // server of this typelibrary.
  80. // *********************************************************************//
  81. CoIEContextMenu = class
  82. class function Create: IIEContextMenu;
  83. class function CreateRemote(const MachineName: string): IIEContextMenu;
  84. end;
  85. implementation
  86. uses ComObj;
  87. class function CoIEContextMenu.Create: IIEContextMenu;
  88. begin
  89. Result := CreateComObject(CLASS_IEContextMenu) as IIEContextMenu;
  90. end;
  91. class function CoIEContextMenu.CreateRemote(const MachineName: string): IIEContextMenu;
  92. begin
  93. Result := CreateRemoteComObject(MachineName, CLASS_IEContextMenu) as IIEContextMenu;
  94. end;
  95. end.