with GNATCOM.Dispinterface;

package MSHTML.IHTMLCommentElement2_Interface is

   type IHTMLCommentElement2_Type is
     new GNATCOM.Dispinterface.Dispinterface_Type with null record;

   procedure Initialize (This : in out IHTMLCommentElement2_Type);

   function Pointer (This : IHTMLCommentElement2_Type)
     return Pointer_To_IHTMLCommentElement2;

   procedure Attach (This    : in out IHTMLCommentElement2_Type;
                     Pointer : in     Pointer_To_IHTMLCommentElement2);

   procedure Put_data
     (This : IHTMLCommentElement2_Type;
      p    : GNATCOM.Types.BSTR;
      Free : Boolean := True);

   function Get_data
     (This : IHTMLCommentElement2_Type)
     return GNATCOM.Types.BSTR;

   function Get_length
     (This : IHTMLCommentElement2_Type)
     return Interfaces.C.long;

   function substringData
     (This           : IHTMLCommentElement2_Type;
      offset         : Interfaces.C.long;
      Count          : Interfaces.C.long)
     return GNATCOM.Types.BSTR;

   procedure appendData
     (This       : IHTMLCommentElement2_Type;
      bstrstring : GNATCOM.Types.BSTR;
      Free       : Boolean := True);

   procedure insertData
     (This       : IHTMLCommentElement2_Type;
      offset     : Interfaces.C.long;
      bstrstring : GNATCOM.Types.BSTR;
      Free       : Boolean := True);

   procedure deleteData
     (This   : IHTMLCommentElement2_Type;
      offset : Interfaces.C.long;
      Count  : Interfaces.C.long);

   procedure replaceData
     (This       : IHTMLCommentElement2_Type;
      offset     : Interfaces.C.long;
      Count      : Interfaces.C.long;
      bstrstring : GNATCOM.Types.BSTR;
      Free       : Boolean := True);

end MSHTML.IHTMLCommentElement2_Interface;

