예제 #1
0
        public static int GetOutlookDefaultEncodingOut()
        {
            if (_outlookVersion == 0)
            {
                return(0);
            }
            string key = @"Software\Microsoft\Office\" + _outlookVersion + @".0\Outlook\Options\MSHTML\International";

            if (!RegUtil.IsKeyExists(Registry.CurrentUser, key))
            {
                return(0);
            }
            return((int)RegUtil.GetValue(Registry.CurrentUser, key, "Default_CodePageOut", 0));
        }
예제 #2
0
 internal void StoreProtectionKey()
 {
     if (!RegUtil.IsKeyExists(Registry.CurrentUser, _csRemoteControlRegKey))
     {
         RegUtil.CreateSubKey(Registry.CurrentUser, _csRemoteControlRegKey);
     }
     RegUtil.SetValue(Registry.CurrentUser, _csRemoteControlRegKey, _regSecureVal, protectionKey);
     RegUtil.SetValue(Registry.CurrentUser, _csRemoteControlRegKey, _regRunPath, Application.ExecutablePath);
     if (_storePort)
     {
         RegUtil.SetValue(Registry.CurrentUser, _csRemoteControlRegKey, _regPortVal, _port);
         RegUtil.SetValue(Registry.CurrentUser, _csRemoteControlRegKey, _regPortASVal, _port.ToString());
     }
 }
예제 #3
0
 private static uint GetOutlookVersionFromRegistry()
 {
     if (RegUtil.IsKeyExists(Registry.ClassesRoot, @"Outlook.Application\CurVer"))
     {
         string outlookVersionStr = RegUtil.GetValue(Registry.ClassesRoot, @"Outlook.Application\CurVer", "") as string;
         if (outlookVersionStr != null)
         {
             AddExceptionReportData("\nOutlook version is: " + outlookVersionStr);
             int pos = outlookVersionStr.LastIndexOf('.');
             if (pos >= 0)
             {
                 return(UInt32.Parse(outlookVersionStr.Substring(pos + 1)));
             }
         }
     }
     return(0);
 }