본문 바로가기

Windows/MFC

GetProcessMemoryInfo (현재 프로그램에 메모리 점유율 알기)

GetProcessMemoryInfo
The GetProcessMemoryInfo function retrieves information about the memory usage of the specified process in the PROCESS_MEMORY_COUNTERS structure.

BOOL GetProcessMemoryInfo(
    HANDLE Process,                             // handle to the process
    PPROCESS_MEMORY_COUNTERS ppsmemCounters,    // structure that receives information
    DWORD cb                                    // size of the structure
);

Parameters

Process
Handle to the process.

ppsmemCounters
Pointer to the PROCESS_MEMORY_COUNTERS structure that receives information about the memory usage of the process.

cb
Specifies the size, in bytes, of the PROCESS_MEMORY_COUNTERS structure.

Return Value
If the function succeeds, the return value is nonzero.

If the function fails, the return value is zero. To get extended error information, call GetLastError.

'Windows > MFC' 카테고리의 다른 글

scroll bar 처리..  (0) 2013.10.02
스크롤바-기초05  (0) 2013.10.02
reading mp3 id3 tag (mp3 테그 읽기)  (0) 2013.10.02
윈도우 종료 (for vista)  (0) 2013.10.02
CString 에서 메모리관련 오류 발생시 m_szParsing.GetBuffer(6500);  (0) 2013.10.02