Implement RecycleBinPanel #1610

This commit is contained in:
ema
2025-05-07 03:41:11 +08:00
parent a0a46832ed
commit e0f581e149
8 changed files with 199 additions and 16 deletions

View File

@@ -23,6 +23,9 @@ namespace QuickLook.Plugin.CLSIDViewer;
internal static class CLSIDRegister
{
public const string RecycleBin = "::{645FF040-5081-101B-9F08-00AA002F954E}";
public const string ThisPC = "::{20D04FE0-3AEA-1069-A2D8-08002B30309D}";
public static string GetName(string clsid)
{
try
@@ -31,10 +34,10 @@ internal static class CLSIDRegister
string displayName = Registry.GetValue($@"HKEY_CLASSES_ROOT\CLSID\{clsid.Replace(":", string.Empty)}", string.Empty, null)?.ToString();
return displayName;
}
catch (Exception ex)
catch (Exception e)
{
Debug.WriteLine("Error reading registry: " + ex.Message);
Debug.WriteLine("Error reading registry: " + e.Message);
}
return string.Empty;
return null;
}
}