Looking for assistance in converting the JavaScript function shown below into C#.
var vc = new ActiveXObject("NetLimiter.VirtualClient");
vc.Connect("localhost"/*addr*/, ""/*port or pipe*/);
var newRuleId = vc.SetRule(
"C:\\Program Files\\Internet Explorer\\iexplore.exe",
"limit",// rule type
"in", // for download (incoming)
"Internet",// zone
true, // rule is enabled
"1024", // 1024 Bytes
"");