Exemple #1
0
 public static void SetEnabled(InternetFeatureList feature, SetFeatureFlag flags, bool enable)
 {
     if (OSHelper.IsOSAtLeastWindowsXPSP2 && OSHelper.IsIE6)
     {
         NativeMethods.setEnabled(feature, flags, enable);
     }
 }
Exemple #2
0
            internal static void setEnabled(InternetFeatureList feature, SetFeatureFlag flags, bool enable)
            {
                int HRESULT = CoInternetSetFeatureEnabled(feature, (int)flags, enable);

                //If the HRESULT is 0 or positive (a success code), the method
                //returns without creating or throwing an exception:
                Marshal.ThrowExceptionForHR(HRESULT);
            }