with GNATCOM.IInterface;

with GNATCOM.Errors;

package body MSHTML.IHTCAttachBehavior_Interface is

   procedure Initialize (This : in out IHTCAttachBehavior_Type) is
   begin
      Set_IID (This, IID_IHTCAttachBehavior);
   end Initialize;

   function Pointer (This : IHTCAttachBehavior_Type)
     return Pointer_To_IHTCAttachBehavior
   is
   begin
      return To_Pointer_To_IHTCAttachBehavior (Address (This));
   end Pointer;

   procedure Attach (This    : in out IHTCAttachBehavior_Type;
                     Pointer : in     Pointer_To_IHTCAttachBehavior)
   is
   begin
      Attach (This, GNATCOM.IInterface.To_Pointer_To_IUnknown
              (Pointer.all'Address));
   end Attach;

   procedure FireEvent
     (This : IHTCAttachBehavior_Type;
      evt  : GNATCOM.Types.Pointer_To_IDispatch)
   is
   begin
      GNATCOM.Errors.Error_Check
        (Pointer (This).Vtbl.FireEvent
         (Pointer (This),
          evt));

   end FireEvent;

   procedure detachEvent
     (This : IHTCAttachBehavior_Type)
   is
   begin
      GNATCOM.Errors.Error_Check
        (Pointer (This).Vtbl.detachEvent
         (Pointer (This)));

   end detachEvent;

end MSHTML.IHTCAttachBehavior_Interface;

