public static NetFwTypeLib.INetFwOpenPort GetNetFwOpenPort() { Type type = Type.GetTypeFromCLSID(new Guid("{0CA545C6-37AD-4A6C-BF92-9F7610067EF5}")); return (NetFwTypeLib.INetFwOpenPort)Activator.CreateInstance(type); }