Esempio n. 1
0
 public MemoryInfo GetMemoryInfo()
 {
     MemoryInfo memoryInfo = new MemoryInfo();
     GlobalMemoryStatus(ref  memoryInfo);
     System.Diagnostics.Process p = System.Diagnostics.Process.GetCurrentProcess();
     memoryInfo.dwCurrentMemorySize = p.NonpagedSystemMemorySize;
     return memoryInfo;
 }
Esempio n. 2
0
        public MemoryInfo GetMemoryInfo()
        {
            MemoryInfo memoryInfo = new MemoryInfo();

            GlobalMemoryStatus(ref memoryInfo);
            System.Diagnostics.Process p = System.Diagnostics.Process.GetCurrentProcess();
            memoryInfo.dwCurrentMemorySize = p.NonpagedSystemMemorySize;
            return(memoryInfo);
        }
Esempio n. 3
0
        protected void Page_Load(object sender, EventArgs e)
        {
            WaitForFillSimpleUsers<ConsoleLoginLog>(ConsoleLog);

            OSVersion = Environment.OSVersion.ToString();
            if (OSVersion.IndexOf("Microsoft Windows NT 5.0") > -1)
            {
                OSVersion = string.Concat("Microsoft Windows 2000 (", OSVersion, ")");
                IISVersion = "IIS 5";
            }
            else if (OSVersion.IndexOf("Microsoft Windows NT 5.1") > -1)
            {
                OSVersion = string.Concat("Microsoft Windows XP (", OSVersion, ")");
                IISVersion = "IIS 5.1";
            }
            else if (OSVersion.IndexOf("Microsoft Windows NT 5.2") > -1)
            {
                OSVersion = string.Concat("Microsoft Windows 2003 (", OSVersion, ")");
                IISVersion = "IIS 6";
            }
            else if (OSVersion.IndexOf("Microsoft Windows NT 6.0") > -1)
            {
                OSVersion = string.Concat("Microsoft Windows Vista (", OSVersion, ")");
                IISVersion = "IIS 7";
            }
            else if (OSVersion.IndexOf("Microsoft Windows NT 6.1") > -1)
            {
                OSVersion = string.Concat("Microsoft Windows 7 (", OSVersion, ")");
                IISVersion = "IIS 7.5";
            }

            NETVersion = Environment.Version.ToString();

                dataBaseInfo = DataAccess.DatabaseInfoDao.Instance.GetDataBaseInfo();
    
            try
            {
                memoryInfo = new MemoryInfo().GetMemoryInfo();
            }
            catch
            {
                memoryInfo = new MemoryInfo();
            }
        }
Esempio n. 4
0
 public static extern void GlobalMemoryStatus(ref  MemoryInfo memoryInfo);
Esempio n. 5
0
 public static extern void GlobalMemoryStatus(ref MemoryInfo memoryInfo);