Main MRPT website > C++ reference for MRPT 1.9.9
List of all members | Public Member Functions | Public Attributes | Protected Types | Protected Attributes
mrpt::system::CAuxPSAPI_Loader Class Reference

Detailed Description

This is an auxiliary class for mrpt::system::getMemoryUsage() under Windows.

It loads in runtime PSAPI.DLL. This is to avoid problems in some platforms, i.e Windows 2000, where this DLL must not be present.

Definition at line 54 of file memory.cpp.

Public Member Functions

 CAuxPSAPI_Loader ()
 
 ~CAuxPSAPI_Loader ()
 
BOOL WINAPI GetProcessMemoryInfo (HANDLE Process, PPROCESS_MEMORY_COUNTERS ppsmemCounters, DWORD cb)
 

Public Attributes

HMODULE m_dll
 

Protected Types

typedef BOOL(WINAPI * TGetProcessMemoryInfo) (HANDLE Process, PPROCESS_MEMORY_COUNTERS ppsmemCounters, DWORD cb)
 

Protected Attributes

TGetProcessMemoryInfo m_ptr
 

Member Typedef Documentation

◆ TGetProcessMemoryInfo

typedef BOOL(WINAPI* mrpt::system::CAuxPSAPI_Loader::TGetProcessMemoryInfo) (HANDLE Process, PPROCESS_MEMORY_COUNTERS ppsmemCounters, DWORD cb)
protected

Definition at line 57 of file memory.cpp.

Constructor & Destructor Documentation

◆ CAuxPSAPI_Loader()

mrpt::system::CAuxPSAPI_Loader::CAuxPSAPI_Loader ( )
inline

Definition at line 65 of file memory.cpp.

◆ ~CAuxPSAPI_Loader()

mrpt::system::CAuxPSAPI_Loader::~CAuxPSAPI_Loader ( )
inline

Definition at line 76 of file memory.cpp.

Member Function Documentation

◆ GetProcessMemoryInfo()

BOOL WINAPI mrpt::system::CAuxPSAPI_Loader::GetProcessMemoryInfo ( HANDLE  Process,
PPROCESS_MEMORY_COUNTERS  ppsmemCounters,
DWORD  cb 
)
inline

Definition at line 86 of file memory.cpp.

Referenced by mrpt::system::getMemoryUsage().

Member Data Documentation

◆ m_dll

HMODULE mrpt::system::CAuxPSAPI_Loader::m_dll

Definition at line 63 of file memory.cpp.

◆ m_ptr

TGetProcessMemoryInfo mrpt::system::CAuxPSAPI_Loader::m_ptr
protected

Definition at line 60 of file memory.cpp.




Page generated by Doxygen 1.8.14 for MRPT 1.9.9 Git: ad3a9d8ae Tue May 1 23:10:22 2018 -0700 at lun oct 28 00:14:14 CET 2019