예제 #1
0
        internal static CompleteInstallInfo GetCompleteInstallInfo()
        {
            CompleteInstallInfo sysInfo = new CompleteInstallInfo();

            sysInfo.cpuInfo       = CpuHelper.GetCpuInfo();
            sysInfo.gpuInfo       = GpuHelper.GetGpuInfo();
            sysInfo.uptimePct     = CpuHelper.GetUptimePct();
            sysInfo.uptimeCurrent = CpuHelper.GetUptimeCurrent();
            if (status != null)
            {
                sysInfo.batteyStatus = status.BatteryChargeStatus.ToString();
                sysInfo.batteryUsed  = status.PowerLineStatus != System.Windows.Forms.PowerLineStatus.Online;
            }
            sysInfo.isAdmin      = CpuHelper.IsAdministrator();
            sysInfo.powerProfile = PowerEnumerator.GetCurrentPowerEnumerateVistaAPI();
            sysInfo.screenRes    = GpuHelper.GetScreenResolution();
            return(sysInfo);
        }