initial checkin of yaulw (locally)
This commit is contained in:
24
@integrate/Snippets.txt
Normal file
24
@integrate/Snippets.txt
Normal file
@@ -0,0 +1,24 @@
|
||||
private string GetDefaultBrowserPath()
|
||||
{
|
||||
try
|
||||
{
|
||||
if (ApplicationSettings.appSettings().LogEvents)
|
||||
{
|
||||
CrossProductLogging.WriteEventLogFile("Begin GetDefaultBrowserPath");
|
||||
}
|
||||
|
||||
string key = @"htmlfile\shell\open\command";
|
||||
RegistryKey registryKey =
|
||||
Registry.ClassesRoot.OpenSubKey(key, false);
|
||||
// get default browser path
|
||||
if (ApplicationSettings.appSettings().LogEvents)
|
||||
{
|
||||
CrossProductLogging.WriteEventLogFile("End GetDefaultBrowserPath");
|
||||
}
|
||||
return ((string)registryKey.GetValue(null, null)).Split('"')[1];
|
||||
}
|
||||
catch
|
||||
{
|
||||
return "";
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user