void CGetInfoDlg::GetMemoryInfo()
{
// TODO: 在此处添加实现代码.
m_Memory.dwLength = sizeof(m_Memory);
GlobalMemoryStatusEx(&m_Memory);
CString str;
str.Format(_T("总的物理内存:%lldKB"), m_Memory.ullTotalPhys / 1024);
m_totalPhyMemory.SetWindowTextW(str);
str.Format(_T("可用物理内存:%lldKB"), m_Memory.ullAvailPhys / 1024);
m_freePhyMemory.SetWindowTextW(str);
str.Format(_T("总的虚拟内存:%lldKB"), m_Memory.ullTotalVirtual / 1024);
m_totalVirtualMemory.SetWindowTextW(str);
str.Format(_T("可用虚拟内存:%lldKB"), m_Memory.ullAvailVirtual / 1024);
m_freeVirtualMemory.SetWindowTextW(str);
}