with GNATCOM.IInterface;

with GNATCOM.Errors;

package body MSHTML.IHTMLModelessInit_Interface is

   procedure Initialize (This : in out IHTMLModelessInit_Type) is
   begin
      Set_IID (This, IID_IHTMLModelessInit);
   end Initialize;

   function Pointer (This : IHTMLModelessInit_Type)
     return Pointer_To_IHTMLModelessInit
   is
   begin
      return To_Pointer_To_IHTMLModelessInit (Address (This));
   end Pointer;

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

   function Get_parameters
     (This : IHTMLModelessInit_Type)
     return GNATCOM.Types.VARIANT
   is
       RetVal : aliased GNATCOM.Types.VARIANT;
   begin
      GNATCOM.Errors.Error_Check
        (Pointer (This).Vtbl.Get_parameters
         (Pointer (This),
          RetVal'Unchecked_Access));

      return RetVal;
   end Get_parameters;

   function Get_optionString
     (This : IHTMLModelessInit_Type)
     return GNATCOM.Types.VARIANT
   is
       RetVal : aliased GNATCOM.Types.VARIANT;
   begin
      GNATCOM.Errors.Error_Check
        (Pointer (This).Vtbl.Get_optionString
         (Pointer (This),
          RetVal'Unchecked_Access));

      return RetVal;
   end Get_optionString;

   function Get_moniker
     (This : IHTMLModelessInit_Type)
     return GNATCOM.Types.Pointer_To_IUnknown
   is
       RetVal : aliased GNATCOM.Types.Pointer_To_IUnknown;
   begin
      GNATCOM.Errors.Error_Check
        (Pointer (This).Vtbl.Get_moniker
         (Pointer (This),
          RetVal'Unchecked_Access));

      return RetVal;
   end Get_moniker;

   function Get_document
     (This : IHTMLModelessInit_Type)
     return GNATCOM.Types.Pointer_To_IUnknown
   is
       RetVal : aliased GNATCOM.Types.Pointer_To_IUnknown;
   begin
      GNATCOM.Errors.Error_Check
        (Pointer (This).Vtbl.Get_document
         (Pointer (This),
          RetVal'Unchecked_Access));

      return RetVal;
   end Get_document;

end MSHTML.IHTMLModelessInit_Interface;

