internetsetoption

Wininet's INTERNET_OPTION_IGNORE_OFFLINE doesn't work?

I'm trying to get Wininet to ignore Internet Explorer's "Work Offline" mode, for both HTTP and FTP. So I'm trying to use InternetSetOption() with INTERNET_OPTION_IGNORE_OFFLINE. The documentation says "This is used by InternetQueryOption and InternetSetOption with a request handle." However, you can't get a request handle because if I...

Enable proxy by editing registry in real time in c#

This is the code that I use to enable the proxy. It has worked fine on all versions of windows up until Server 2008 R2 (Windows 7 Kernal). Now it only works the fist time. I start my application and enable the proxy and that works fine. I then try disabling it using code similar to the code below. It never gets disabled. If I manua...

WinInet InternetSetOption with INTERNET_OPTION_SUPPRESS_BEHAVIOR option not working as expected

Hi all and thanks for taking the time to read this. I have a c# application where I wish to override the default WinInet cookie settings. The goal is that even when the system WinInet cookie privacy settings are set to Block All, within my process, cookies will still be accepted calls. Reading the documentation, it looked straightforw...

C# wininet InternetSetOption

I'm using http://stackoverflow.com/questions/434469/how-to-clear-system-windows-forms-webbrowser-session-data/1871828#1871828 and it works as long as there is only one browser. Is it possible to give 2 web browser controls within the same application their own session? If so, would I just need to change InternetSetOption(IntPtr.Zero, I...