title: Using NetFwTypeLib to block or unblock ports using firewall settings didn't work on Windows XP
body: <p>I was trying to block or unblock using 80 TCP port with this code:</p>
  
  <pre><code> const string guidFWPolicy2 = "{E2B3C97F-6AE1-41AC-817A-F6F92166D7DD}";
  const string guidRWRule = "{2C5BC43E-3369-4C33-AB0C-BE9469677AF4}";
  Type typeFWPolicy2 = Type.GetTypeFromCLSID(new Guid(guidFWPolicy2));
  Type typeFWRule = Type.GetTypeFromCLSID(new Guid(guidRWRule));
  INetFwPolicy2 fwPolicy2 =(INetFwPolicy2)Activator.CreateInstance(typeFWPolicy2);
   INetFwRule newRule = (INetFwRule)Activator.CreateInstance(typeFWRule);
  newRule.Name = "MabuAsTcpLocker_OutBound_Rule";
  newRule.Description = "Block outbound traffic  over TCP port 80";
  newRule.Protocol = (int)NET_FW_IP_PROTOCOL_.NET_FW_IP_PROTOCOL_TCP;
  newRule.RemotePorts = "80";                 
  newRule.Direction = NET_FW_RULE_DIRECTION_.NET_FW_RULE_DIR_OUT;
  newRule.Enabled = true;
  newRule.Profiles = fwPolicy2.CurrentProfileTypes;
  newRule.Action = NET_FW_ACTION_.NET_FW_ACTION_BLOCK;
  fwPolicy2.Rules.Add(newRule);
  </code></pre>
  
  <p>This code work just fine on Windows seven but didn't work on Windows XP. In my project i just referenced the NetFwTypeLib COM library.
  The exception say that it couldn't find and instanciate the class with the {E2B3C97F-6AE1-41AC-817A-F6F92166D7DD} Guid.
  Please can you help me in that?</p>