I am using the class provided here to programmatically set the Internet Explorer proxy settings via InternetSetOption() from wininet.dll.
However, if my project is set to target the x86 platform it will only change the proxy settings for the 32-bit version of IE, and if i set it to 'Any CPU' it will only change the settings for the 64-bit version of IE.
How can I use this class (or indeed InternetSetOption) to target both versions of Internet Explorer. It must be possible as FiddlerCore does the same thing with ease.