private void Refresh()
 {
     if (this.m_IsOldOS)
     {
         this.m_MemoryStatus = new Microsoft.VisualBasic.CompilerServices.NativeMethods.MEMORYSTATUS();
         Microsoft.VisualBasic.CompilerServices.NativeMethods.GlobalMemoryStatus(ref this.m_MemoryStatus);
     }
     else
     {
         this.m_MemoryStatusEx = new Microsoft.VisualBasic.CompilerServices.NativeMethods.MEMORYSTATUSEX();
         this.m_MemoryStatusEx.Init();
         if (!Microsoft.VisualBasic.CompilerServices.NativeMethods.GlobalMemoryStatusEx(ref this.m_MemoryStatusEx))
         {
             throw ExceptionUtils.GetWin32Exception("DiagnosticInfo_Memory", new string[0]);
         }
     }
 }
 private void Refresh()
 {
     if (this.m_IsOldOS)
     {
         this.m_MemoryStatus = new Microsoft.VisualBasic.CompilerServices.NativeMethods.MEMORYSTATUS();
         Microsoft.VisualBasic.CompilerServices.NativeMethods.GlobalMemoryStatus(ref this.m_MemoryStatus);
     }
     else
     {
         this.m_MemoryStatusEx = new Microsoft.VisualBasic.CompilerServices.NativeMethods.MEMORYSTATUSEX();
         this.m_MemoryStatusEx.Init();
         if (!Microsoft.VisualBasic.CompilerServices.NativeMethods.GlobalMemoryStatusEx(ref this.m_MemoryStatusEx))
         {
             throw ExceptionUtils.GetWin32Exception("DiagnosticInfo_Memory", new string[0]);
         }
     }
 }