with GNATCOM.IInterface;

with GNATCOM.Errors;

package body MSHTML.IWebGeopositionError_Interface is

   procedure Initialize (This : in out IWebGeopositionError_Type) is
   begin
      Set_IID (This, IID_IWebGeopositionError);
   end Initialize;

   function Pointer (This : IWebGeopositionError_Type)
     return Pointer_To_IWebGeopositionError
   is
   begin
      return To_Pointer_To_IWebGeopositionError (Address (This));
   end Pointer;

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

   function Get_code
     (This : IWebGeopositionError_Type)
     return Interfaces.C.long
   is
       RetVal : aliased Interfaces.C.long;
   begin
      GNATCOM.Errors.Error_Check
        (Pointer (This).Vtbl.Get_code
         (Pointer (This),
          RetVal'Unchecked_Access));

      return RetVal;
   end Get_code;

   function Get_message
     (This : IWebGeopositionError_Type)
     return GNATCOM.Types.BSTR
   is
       RetVal : aliased GNATCOM.Types.BSTR;
   begin
      GNATCOM.Errors.Error_Check
        (Pointer (This).Vtbl.Get_message
         (Pointer (This),
          RetVal'Unchecked_Access));

      return RetVal;
   end Get_message;

end MSHTML.IWebGeopositionError_Interface;

