Esempio n. 1
0
        private static bool Is32BitProcessOn64BitProcessor()
        {
            bool isWow = false;

            RegistrySymlinkUtils.IsWow64Process(Process.GetCurrentProcess().Handle, ref isWow);
            return(isWow);
        }
Esempio n. 2
0
 public static bool SymlinkCreator()
 {
     if (RegistrySymlinkUtils.IsOs64Bit())
     {
         try
         {
             RegistrySymlinkUtils.RemoveRegistrySymlink();
         }
         catch (Exception ex)
         {
         }
         RegistrySymlinkUtils.CreateRegistrySymlink();
     }
     return(true);
 }
Esempio n. 3
0
        public static bool IsOs64Bit()
        {
            switch (IntPtr.Size)
            {
            case 4:
                if (!RegistrySymlinkUtils.Is32BitProcessOn64BitProcessor())
                {
                    break;
                }
                goto case 8;

            case 8:
                return(true);
            }
            return(false);
        }