with GNATCOM.Dispinterface;

package IE.IShellUIHelper4_Interface is

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

   procedure Initialize (This : in out IShellUIHelper4_Type);

   function Pointer (This : IShellUIHelper4_Type)
     return Pointer_To_IShellUIHelper4;

   procedure Attach (This    : in out IShellUIHelper4_Type;
                     Pointer : in     Pointer_To_IShellUIHelper4);

   procedure ResetFirstBootMode
     (This : IShellUIHelper4_Type);

   procedure ResetSafeMode
     (This : IShellUIHelper4_Type);

   procedure RefreshOfflineDesktop
     (This : IShellUIHelper4_Type);

   procedure AddFavorite
     (This  : IShellUIHelper4_Type;
      URL   : GNATCOM.Types.BSTR;
      Title : access GNATCOM.Types.VARIANT :=
        GNATCOM.Types.PVARIANT_MISSING;
      Free  : Boolean := True);

   procedure AddChannel
     (This : IShellUIHelper4_Type;
      URL  : GNATCOM.Types.BSTR;
      Free : Boolean := True);

   procedure AddDesktopComponent
     (This   : IShellUIHelper4_Type;
      URL    : GNATCOM.Types.BSTR;
      uType  : GNATCOM.Types.BSTR;
      Left   : access GNATCOM.Types.VARIANT :=
        GNATCOM.Types.PVARIANT_MISSING;
      Top    : access GNATCOM.Types.VARIANT :=
        GNATCOM.Types.PVARIANT_MISSING;
      Width  : access GNATCOM.Types.VARIANT :=
        GNATCOM.Types.PVARIANT_MISSING;
      Height : access GNATCOM.Types.VARIANT :=
        GNATCOM.Types.PVARIANT_MISSING;
      Free   : Boolean := True);

   function IsSubscribed
     (This  : IShellUIHelper4_Type;
      URL   : GNATCOM.Types.BSTR;
      Free  : Boolean := True)
     return GNATCOM.Types.VARIANT_BOOL;

   procedure NavigateAndFind
     (This           : IShellUIHelper4_Type;
      URL            : GNATCOM.Types.BSTR;
      strQuery       : GNATCOM.Types.BSTR;
      varTargetFrame : access GNATCOM.Types.VARIANT :=
        GNATCOM.Types.PVARIANT_MISSING;
      Free           : Boolean := True);

   procedure ImportExportFavorites
     (This          : IShellUIHelper4_Type;
      fImport       : GNATCOM.Types.VARIANT_BOOL;
      strImpExpPath : GNATCOM.Types.BSTR;
      Free          : Boolean := True);

   procedure AutoCompleteSaveForm
     (This : IShellUIHelper4_Type;
      Form : access GNATCOM.Types.VARIANT :=
        GNATCOM.Types.PVARIANT_MISSING);

   procedure AutoScan
     (This            : IShellUIHelper4_Type;
      strSearch       : GNATCOM.Types.BSTR;
      strFailureUrl   : GNATCOM.Types.BSTR;
      pvarTargetFrame : access GNATCOM.Types.VARIANT :=
        GNATCOM.Types.PVARIANT_MISSING;
      Free            : Boolean := True);

   procedure AutoCompleteAttach
     (This     : IShellUIHelper4_Type;
      Reserved : access GNATCOM.Types.VARIANT :=
        GNATCOM.Types.PVARIANT_MISSING);

   function ShowBrowserUI
     (This     : IShellUIHelper4_Type;
      bstrName : GNATCOM.Types.BSTR;
      pvarIn   : access GNATCOM.Types.VARIANT :=
        GNATCOM.Types.PVARIANT_MISSING;
      Free     : Boolean := True)
     return GNATCOM.Types.VARIANT;

   procedure AddSearchProvider
     (This : IShellUIHelper4_Type;
      URL  : GNATCOM.Types.BSTR;
      Free : Boolean := True);

   procedure RunOnceShown
     (This : IShellUIHelper4_Type);

   procedure SkipRunOnce
     (This : IShellUIHelper4_Type);

   procedure CustomizeSettings
     (This       : IShellUIHelper4_Type;
      fSQM       : GNATCOM.Types.VARIANT_BOOL;
      fPhishing  : GNATCOM.Types.VARIANT_BOOL;
      bstrLocale : GNATCOM.Types.BSTR;
      Free       : Boolean := True);

   function SqmEnabled
     (This      : IShellUIHelper4_Type)
     return GNATCOM.Types.VARIANT_BOOL;

   function PhishingEnabled
     (This      : IShellUIHelper4_Type)
     return GNATCOM.Types.VARIANT_BOOL;

   function BrandImageUri
     (This     : IShellUIHelper4_Type)
     return GNATCOM.Types.BSTR;

   procedure SkipTabsWelcome
     (This : IShellUIHelper4_Type);

   procedure DiagnoseConnection
     (This : IShellUIHelper4_Type);

   procedure CustomizeClearType
     (This : IShellUIHelper4_Type;
      fSet : GNATCOM.Types.VARIANT_BOOL);

   function IsSearchProviderInstalled
     (This      : IShellUIHelper4_Type;
      URL       : GNATCOM.Types.BSTR;
      Free      : Boolean := True)
     return Interfaces.C.unsigned_long;

   function IsSearchMigrated
     (This       : IShellUIHelper4_Type)
     return GNATCOM.Types.VARIANT_BOOL;

   function DefaultSearchProvider
     (This      : IShellUIHelper4_Type)
     return GNATCOM.Types.BSTR;

   procedure RunOnceRequiredSettingsComplete
     (This      : IShellUIHelper4_Type;
      fComplete : GNATCOM.Types.VARIANT_BOOL);

   function RunOnceHasShown
     (This    : IShellUIHelper4_Type)
     return GNATCOM.Types.VARIANT_BOOL;

   function SearchGuideUrl
     (This     : IShellUIHelper4_Type)
     return GNATCOM.Types.BSTR;

   procedure AddService
     (This : IShellUIHelper4_Type;
      URL  : GNATCOM.Types.BSTR;
      Free : Boolean := True);

   function IsServiceInstalled
     (This      : IShellUIHelper4_Type;
      URL       : GNATCOM.Types.BSTR;
      Verb      : GNATCOM.Types.BSTR;
      Free      : Boolean := True)
     return Interfaces.C.unsigned_long;

   function InPrivateFilteringEnabled
     (This      : IShellUIHelper4_Type)
     return GNATCOM.Types.VARIANT_BOOL;

   procedure AddToFavoritesBar
     (This  : IShellUIHelper4_Type;
      URL   : GNATCOM.Types.BSTR;
      Title : GNATCOM.Types.BSTR;
      uType : access GNATCOM.Types.VARIANT :=
        GNATCOM.Types.PVARIANT_MISSING;
      Free  : Boolean := True);

   procedure BuildNewTabPage
     (This : IShellUIHelper4_Type);

   procedure SetRecentlyClosedVisible
     (This     : IShellUIHelper4_Type;
      fVisible : GNATCOM.Types.VARIANT_BOOL);

   procedure SetActivitiesVisible
     (This     : IShellUIHelper4_Type;
      fVisible : GNATCOM.Types.VARIANT_BOOL);

   procedure ContentDiscoveryReset
     (This : IShellUIHelper4_Type);

   function IsSuggestedSitesEnabled
     (This      : IShellUIHelper4_Type)
     return GNATCOM.Types.VARIANT_BOOL;

   procedure EnableSuggestedSites
     (This    : IShellUIHelper4_Type;
      fEnable : GNATCOM.Types.VARIANT_BOOL);

   procedure NavigateToSuggestedSites
     (This            : IShellUIHelper4_Type;
      bstrRelativeUrl : GNATCOM.Types.BSTR;
      Free            : Boolean := True);

   procedure ShowTabsHelp
     (This : IShellUIHelper4_Type);

   procedure ShowInPrivateHelp
     (This : IShellUIHelper4_Type);

   function msIsSiteMode
     (This       : IShellUIHelper4_Type)
     return GNATCOM.Types.VARIANT_BOOL;

   procedure msSiteModeShowThumbBar
     (This : IShellUIHelper4_Type);

   function msSiteModeAddThumbBarButton
     (This         : IShellUIHelper4_Type;
      bstrIconURL  : GNATCOM.Types.BSTR;
      bstrTooltip  : GNATCOM.Types.BSTR;
      Free         : Boolean := True)
     return GNATCOM.Types.VARIANT;

   procedure msSiteModeUpdateThumbBarButton
     (This     : IShellUIHelper4_Type;
      ButtonID : GNATCOM.Types.VARIANT;
      fEnabled : GNATCOM.Types.VARIANT_BOOL;
      fVisible : GNATCOM.Types.VARIANT_BOOL;
      Free     : Boolean := True);

   procedure msSiteModeSetIconOverlay
     (This            : IShellUIHelper4_Type;
      IconUrl         : GNATCOM.Types.BSTR;
      pvarDescription : access GNATCOM.Types.VARIANT :=
        GNATCOM.Types.PVARIANT_MISSING;
      Free            : Boolean := True);

   procedure msSiteModeClearIconOverlay
     (This : IShellUIHelper4_Type);

   procedure msAddSiteMode
     (This : IShellUIHelper4_Type);

   procedure msSiteModeCreateJumpList
     (This       : IShellUIHelper4_Type;
      bstrHeader : GNATCOM.Types.BSTR;
      Free       : Boolean := True);

   procedure msSiteModeAddJumpListItem
     (This           : IShellUIHelper4_Type;
      bstrName       : GNATCOM.Types.BSTR;
      bstrActionUri  : GNATCOM.Types.BSTR;
      bstrIconUri    : GNATCOM.Types.BSTR;
      pvarWindowType : access GNATCOM.Types.VARIANT :=
        GNATCOM.Types.PVARIANT_MISSING;
      Free           : Boolean := True);

   procedure msSiteModeClearJumpList
     (This : IShellUIHelper4_Type);

   procedure msSiteModeShowJumpList
     (This : IShellUIHelper4_Type);

   function msSiteModeAddButtonStyle
     (This        : IShellUIHelper4_Type;
      uiButtonID  : GNATCOM.Types.VARIANT;
      bstrIconURL : GNATCOM.Types.BSTR;
      bstrTooltip : GNATCOM.Types.BSTR;
      Free        : Boolean := True)
     return GNATCOM.Types.VARIANT;

   procedure msSiteModeShowButtonStyle
     (This       : IShellUIHelper4_Type;
      uiButtonID : GNATCOM.Types.VARIANT;
      uiStyleID  : GNATCOM.Types.VARIANT;
      Free       : Boolean := True);

   procedure msSiteModeActivate
     (This : IShellUIHelper4_Type);

   function msIsSiteModeFirstRun
     (This           : IShellUIHelper4_Type;
      fPreserveState : GNATCOM.Types.VARIANT_BOOL)
     return GNATCOM.Types.VARIANT;

   procedure msAddTrackingProtectionList
     (This           : IShellUIHelper4_Type;
      URL            : GNATCOM.Types.BSTR;
      bstrFilterName : GNATCOM.Types.BSTR;
      Free           : Boolean := True);

   function msTrackingProtectionEnabled
     (This      : IShellUIHelper4_Type)
     return GNATCOM.Types.VARIANT_BOOL;

   function msActiveXFilteringEnabled
     (This      : IShellUIHelper4_Type)
     return GNATCOM.Types.VARIANT_BOOL;

end IE.IShellUIHelper4_Interface;

