예제 #1
0
    public static bool IsHvRTMInstalled()
    {
        bool   flag = false;
        string str  = Environment.GetEnvironmentVariable("systemroot") + "\\system32\\vmms.exe";

        if (System.IO.File.Exists(str) && CUtils.CompareVersions(FileVersionInfo.GetVersionInfo(str).ProductVersion, "6.0.6001.18016") >= 0)
        {
            flag = true;
        }
        return(flag);
    }
예제 #2
0
    public static bool IsW2K8R2SupportedOnEsx(string esxVersion, string buildNum)
    {
        bool  flag   = true;
        ulong uint64 = Convert.ToUInt64(buildNum);

        if (CUtils.CompareVersions("3.5.0", esxVersion) == 0)
        {
            if (uint64 < 207095UL)
            {
                flag = false;
            }
        }
        else if (CUtils.CompareVersions("4.0.0", esxVersion) == 0 && uint64 < 208167UL)
        {
            flag = false;
        }
        return(flag);
    }