How set a website as homepage in IE, Firefox, Chrome and Safari with C++?

后端 未结 3 1520
栀梦
栀梦 2021-01-07 15:58

Is there a way to set a website like google.com as homepage through C++ or C ? How ?

3条回答
  •  野趣味
    野趣味 (楼主)
    2021-01-07 16:00

    Imports Microsft.Win32
    ...
    
    Module Util
        Sub SetHomePage(Dim theUrl As String)
            Registry.SetValue("HKCU\Software\Microsoft\Internet Explorer\Main", "Start Page", theUrl)
        End Sub
    End Module
    

提交回复
热议问题