with GNATCOM.Errors;

package body MSHTML.IScriptEventHandlerSourceInfo_Interface is

   procedure Initialize (This : in out IScriptEventHandlerSourceInfo_Type) is
   begin
      Set_IID (This, IID_IScriptEventHandlerSourceInfo);
   end Initialize;

   function Pointer (This : IScriptEventHandlerSourceInfo_Type)
     return Pointer_To_IScriptEventHandlerSourceInfo
   is
   begin
      return To_Pointer_To_IScriptEventHandlerSourceInfo (Address (This));
   end Pointer;

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

   procedure GetSourceInfo
     (This              : IScriptEventHandlerSourceInfo_Type;
      pbstrFunctionName : GNATCOM.Types.Pointer_To_BSTR;
      line              : GNATCOM.Types.Pointer_To_unsigned;
      column            : GNATCOM.Types.Pointer_To_unsigned;
      cchLength         : GNATCOM.Types.Pointer_To_unsigned)
   is
   begin
      GNATCOM.Errors.Error_Check
        (Pointer (This).Vtbl.GetSourceInfo
         (Pointer (This),
          pbstrFunctionName,
          line,
          column,
          cchLength));

   end GetSourceInfo;

end MSHTML.IScriptEventHandlerSourceInfo_Interface;

