Ejemplo n.º 1
0
        // Token: 0x0600082B RID: 2091 RVA: 0x00027B84 File Offset: 0x00025D84
        internal static DateTime GetBootTime(AmServerName machineName)
        {
            System.Management.ManagementScope managementScope = AmHelper.GetManagementScope(machineName);
            ManagementPath   path    = new ManagementPath("Win32_OperatingSystem");
            ObjectGetOptions options = null;
            DateTime         bootTimeWithWmi;

            using (ManagementClass managementClass = new ManagementClass(managementScope, path, options))
            {
                bootTimeWithWmi = AmHelper.GetBootTimeWithWmi(managementClass, machineName);
            }
            return(bootTimeWithWmi);
        }