public IDisplayItem Process(IScanItem item) { DisplayItemSeverity severity = DisplayItemSeverity.Information; string name = item.Type; string description = ""; switch (item.Type) { case "RegistryKey": switch ((string)item.Properties["ItemIssue"]) { case "Missing": severity = DisplayItemSeverity.Error; name = "Missing Key"; description = "The registry key <" + item.Properties["Key"] + "> is missing from your system."; break; case "Extra": severity = DisplayItemSeverity.Verbose; name = "Extra Key"; description = "The registry key <" + item.Properties["Key"] + "> was found on your system but it should not exist."; break; } break; case "RegistryValue": break; case "RegistryData": break; } return(new DefaultDisplayItem(severity, name, description)); }
public IDisplayItem Process(IScanItem item) { DisplayItemSeverity severity = DisplayItemSeverity.Critical; if (item.Properties.ContainsKey("Severity")) { severity = (DisplayItemSeverity)Enum.Parse(typeof(DisplayItemSeverity), item.Properties["Severity"].ToString()); } if (item.Properties.ContainsKey("Description")) { return(new DefaultDisplayItem(severity, item.Type, item.Properties["Description"].ToString())); } return(new DefaultDisplayItem(severity, item.Type, "")); }
public IDisplayItem Process(IScanItem item) { DisplayItemSeverity severity = DisplayItemSeverity.Information; string name = item.Type; string description = ""; switch (item.Type) { case "DirectShowFilter": var issue = ""; switch ((string)item.Properties["ItemIssue"]) { case "Unregistered": issue = "is not registered"; break; case "RegisteredWithoutServer": issue = "has no registered file path"; break; case "RegisteredServerNotOnDisk": issue = "uses non-existant file '" + item.Properties["ItemPath"] + "'"; break; } severity = DisplayItemSeverity.Warning; if (item.Properties.ContainsKey("CategoryName")) { name = (string)item.Properties["Name"]; description = "DirectShow '" + item.Properties["CategoryName"] + "' instance " + issue + " for " + item.Properties["Bitness"] + " applications (" + item.Properties["CategoryClassID"] + "/" + item.Properties["ClassID"] + "). You may not be able to play some files in " + item.Properties["Bitness"] + " applications."; } else if (item.Properties.ContainsKey("Type")) { name = (string)item.Properties["Type"]; description = "DirectShow preferred filter " + FormatClassID((string)item.Properties["ClassID"]) + " " + issue + " for " + item.Properties["Bitness"] + " applications. You may not be able to play some files in " + item.Properties["Bitness"] + " applications."; } else { name = (string)item.Properties["Name"]; description = "DirectShow filter " + issue + " for " + item.Properties["Bitness"] + " applications (" + FormatClassID((string)item.Properties["ClassID"]) + "). You may not be able to play some files in " + item.Properties["Bitness"] + " applications."; } break; } return(new DefaultDisplayItem(severity, name, description)); }
public bool Accepts(IScanItem item) { return(item.Type == "DirectShowFilter"); }
public bool Accepts(IScanItem item) { return((item.Type == "RegistryKey") || (item.Type == "RegistryValue") || (item.Type == "RegistryData")); }
public bool Accepts(IScanItem item) { return(true); }