//internet options private void internetOptionsToolStripMenuItem_Click(object sender, EventArgs e) { InternetOption intOp = new InternetOption(getCurrentBrowser().Url.ToString()); if (intOp.ShowDialog() == DialogResult.OK) { if (!intOp.homepage.Text.Equals("")) { homePage = intOp.homepage.Text; settings.DocumentElement.ChildNodes[5].InnerText = intOp.homepage.Text; } if (intOp.deleteHistory.Checked == true) { File.Delete(historyXml); historyTreeView.Nodes.Clear(); } settings.DocumentElement.ChildNodes[6].InnerText = intOp.num.Value.ToString(); ActiveForm.ForeColor = intOp.forecolor; ActiveForm.BackColor = intOp.backcolor; linkBar.BackColor = intOp.backcolor; adrBar.BackColor = intOp.backcolor; ActiveForm.Font = intOp.font; linkBar.Font = intOp.font; menuBar.Font = intOp.font; } }
public static extern bool InternetSetOption(IntPtr hInternet, InternetOption dwOption, IntPtr lpBuffer, int dwBufferLength);
public static extern bool InternetSetOption(IntPtr hInternet, InternetOption dwOption, IntPtr lpBuffer, int dwBufferLength);
private static extern bool InternetSetOption(IntPtr hInternet, InternetOption dwOption, [In] ref InternetProxyInfo lpBuffer, int lpdwBufferLength);
public extern static bool InternetQueryOptionList(IntPtr Handle, InternetOption OptionFlag, ref InternetPerConnectionOptionList OptionList, ref int size);
private static extern bool InternetSetOption(IntPtr hInternet, InternetOption dwOption, string lpBuffer, int lpdwBufferLength);
private static extern bool InternetSetOption(IntPtr hInternet, InternetOption dwOption, [In] ref InternetProxyInfo lpBuffer, int lpdwBufferLength);
private static extern bool InternetQueryOption(IntPtr hInternet, InternetOption dwOption, // ReSharper disable once IdentifierTypo ref InternetPerConnOptionList optionList, ref int lpdwBufferLength);
private static extern bool InternetSetOption(IntPtr hInternet, InternetOption dwOption, string lpBuffer, int lpdwBufferLength);
private static extern bool InternetSetOption(IntPtr hInternet, InternetOption dwOption, IntPtr pBuffer, int dwReserved);
static extern bool InternetQueryOption(IntPtr hInternet, InternetOption dwOption, IntPtr lpBuffer, ref int lpdwBufferLength);