detect Office installation

This commit is contained in:
Paddy Xu
2017-05-22 00:37:12 +03:00
parent e450971217
commit 2af8d4c4ca
3 changed files with 21 additions and 25 deletions

View File

@@ -61,7 +61,7 @@ namespace QuickLook.Plugin.IPreviewHandlers
/// </summary>
/// <param name="filename"></param>
/// <returns></returns>
private Guid GetPreviewHandlerGUID(string filename)
public static Guid GetPreviewHandlerGUID(string filename)
{
// open the registry key corresponding to the file extension
var ext = Registry.ClassesRoot.OpenSubKey(Path.GetExtension(filename));
@@ -150,8 +150,4 @@ namespace QuickLook.Plugin.IPreviewHandlers
}
}
}
#region COM Interop
#endregion
}