-
Notifications
You must be signed in to change notification settings - Fork 1
/
MemoryInfo.h
40 lines (33 loc) · 1.02 KB
/
MemoryInfo.h
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
// MemoryInfo.h: interface for the CMemoryInfo class.
//
//////////////////////////////////////////////////////////////////////
#if !defined(AFX_MEMORYINFO_H__4FBEB746_3902_4A6F_86AD_577F1518A8F5__INCLUDED_)
#define AFX_MEMORYINFO_H__4FBEB746_3902_4A6F_86AD_577F1518A8F5__INCLUDED_
#if _MSC_VER > 1000
#pragma once
#endif // _MSC_VER > 1000
class CMemoryInfo
{
public:
CMemoryInfo();
CRAMInfo();
CString GetRAMSize();
CString GetRAMAvailable();
CString GetVirtualSize();
CString GetVirtualAvailable();
CString GetPageFileSize();
CString GetPageFileAvailable();
CString GetRAMLoadPercent();
CString GetMinAppAddress();
CString GetMaxAppAddress();
CString GetAllocationGranularity();
int GetRAMAvailablePercent();
int GetPageFileAvailablePercent();
int GetVirtualAvailablePercent();
int GetMemLoadPercent();
virtual ~CMemoryInfo();
private:
MEMORYSTATUS m_MemStatus;
SYSTEM_INFO m_SysInfo;
};
#endif // !defined(AFX_MEMORYINFO_H__4FBEB746_3902_4A6F_86AD_577F1518A8F5__INCLUDED_)