#include <sysinfo_gtk.h>
|
HRESULT | openWmi () |
|
HRESULT | freeWmi () |
|
bool | gpuFromDirectX (std::vector< GPU_INFO > &aGpuInfos) |
| Fetches gpu info from directx and registry WMI unforunately has a uint32 max value issue for reporting gpu memory, meanwhile directx does not have this issue.
|
|
bool | getVersionFromDXRegistry (int64_t aAdapterLuid, std::string &aDriverVersion) |
| Extracts the driver version for an dapter from the directx section of the registry.
|
|
std::string | improveDriverVersion (const std::string &aManufacturer, const std::string &aVersion) |
| Attempts to convert the Windows driver version string to the vendor version string if possible.
|
|
void | variantToString (const LPVARIANT aVar, std::string &aReturnString) const |
| Converts a win32 LPVARIANT to a string.
|
|
Definition at line 29 of file sysinfo_gtk.h.
◆ SYSINFO() [1/3]
KIPLATFORM::SYSINFO::SYSINFO |
( |
| ) |
|
◆ ~SYSINFO() [1/3]
KIPLATFORM::SYSINFO::~SYSINFO |
( |
| ) |
|
◆ SYSINFO() [2/3]
KIPLATFORM::SYSINFO::SYSINFO |
( |
| ) |
|
◆ ~SYSINFO() [2/3]
KIPLATFORM::SYSINFO::~SYSINFO |
( |
| ) |
|
◆ SYSINFO() [3/3]
KIPLATFORM::SYSINFO::SYSINFO |
( |
| ) |
|
◆ ~SYSINFO() [3/3]
KIPLATFORM::SYSINFO::~SYSINFO |
( |
| ) |
|
◆ freeWmi()
HRESULT KIPLATFORM::SYSINFO::freeWmi |
( |
| ) |
|
|
private |
◆ GetCPUInfo() [1/3]
bool KIPLATFORM::SYSINFO::GetCPUInfo |
( |
std::vector< CPU_INFO > & |
aCpuInfos | ) |
|
|
overridevirtual |
Retrieve CPU info for the system.
- Parameters
-
aCPUInfos | is an vector for CPU_INFO objects to be stored in |
- Returns
- true if info was fetchable, false if failure to retrieve info
Implements KIPLATFORM::SYSINFO_BASE.
Definition at line 40 of file apple/sysinfo.cpp.
◆ GetCPUInfo() [2/3]
bool KIPLATFORM::SYSINFO::GetCPUInfo |
( |
std::vector< CPU_INFO > & |
aCpuInfos | ) |
|
|
overridevirtual |
Retrieve CPU info for the system.
- Parameters
-
aCPUInfos | is an vector for CPU_INFO objects to be stored in |
- Returns
- true if info was fetchable, false if failure to retrieve info
Implements KIPLATFORM::SYSINFO_BASE.
◆ GetCPUInfo() [3/3]
bool KIPLATFORM::SYSINFO::GetCPUInfo |
( |
std::vector< CPU_INFO > & |
aCpuInfos | ) |
|
|
overridevirtual |
Retrieve CPU info for the system.
- Parameters
-
aCPUInfos | is an vector for CPU_INFO objects to be stored in |
- Returns
- true if info was fetchable, false if failure to retrieve info
Implements KIPLATFORM::SYSINFO_BASE.
◆ GetGPUInfo() [1/3]
bool KIPLATFORM::SYSINFO::GetGPUInfo |
( |
std::vector< GPU_INFO > & |
aGpuInfos | ) |
|
|
overridevirtual |
Retrieve GPU info for the system.
- Parameters
-
aGPUInfos | is an vector for GPU_INFO objects to be stored in |
- Returns
- true if info was fetchable, false if failure to retrieve info
Implements KIPLATFORM::SYSINFO_BASE.
Definition at line 45 of file apple/sysinfo.cpp.
◆ GetGPUInfo() [2/3]
bool KIPLATFORM::SYSINFO::GetGPUInfo |
( |
std::vector< GPU_INFO > & |
aGpuInfos | ) |
|
|
overridevirtual |
Retrieve GPU info for the system.
- Parameters
-
aGPUInfos | is an vector for GPU_INFO objects to be stored in |
- Returns
- true if info was fetchable, false if failure to retrieve info
Implements KIPLATFORM::SYSINFO_BASE.
◆ GetGPUInfo() [3/3]
bool KIPLATFORM::SYSINFO::GetGPUInfo |
( |
std::vector< GPU_INFO > & |
aGpuInfos | ) |
|
|
overridevirtual |
Retrieve GPU info for the system.
- Parameters
-
aGPUInfos | is an vector for GPU_INFO objects to be stored in |
- Returns
- true if info was fetchable, false if failure to retrieve info
Implements KIPLATFORM::SYSINFO_BASE.
◆ GetMemoryInfo() [1/3]
bool KIPLATFORM::SYSINFO::GetMemoryInfo |
( |
MEMORY_INFO & |
aMemoryInfo | ) |
|
|
overridevirtual |
Retrieve memory info for the system.
- Parameters
-
aMemoryInfo | is an object to be populate with the retrieved system memory info |
- Returns
- true if info was fetchable, false if failure to retrieve info
Implements KIPLATFORM::SYSINFO_BASE.
Definition at line 35 of file apple/sysinfo.cpp.
◆ GetMemoryInfo() [2/3]
bool KIPLATFORM::SYSINFO::GetMemoryInfo |
( |
MEMORY_INFO & |
aMemoryInfo | ) |
|
|
overridevirtual |
Retrieve memory info for the system.
- Parameters
-
aMemoryInfo | is an object to be populate with the retrieved system memory info |
- Returns
- true if info was fetchable, false if failure to retrieve info
Implements KIPLATFORM::SYSINFO_BASE.
◆ GetMemoryInfo() [3/3]
bool KIPLATFORM::SYSINFO::GetMemoryInfo |
( |
MEMORY_INFO & |
aMemoryInfo | ) |
|
|
overridevirtual |
Retrieve memory info for the system.
- Parameters
-
aMemoryInfo | is an object to be populate with the retrieved system memory info |
- Returns
- true if info was fetchable, false if failure to retrieve info
Implements KIPLATFORM::SYSINFO_BASE.
◆ getVersionFromDXRegistry()
bool KIPLATFORM::SYSINFO::getVersionFromDXRegistry |
( |
int64_t |
aAdapterLuid, |
|
|
std::string & |
aDriverVersion |
|
) |
| |
|
private |
Extracts the driver version for an dapter from the directx section of the registry.
- Parameters
-
aAdapterLuid | is the unique adapter (gpu) id to look for in the registry |
aDriverVersion | is the string variable that will be updated |
- Returns
- True if successfully retrieved the driver version
Definition at line 315 of file windows/sysinfo.cpp.
Referenced by gpuFromDirectX().
◆ gpuFromDirectX()
bool KIPLATFORM::SYSINFO::gpuFromDirectX |
( |
std::vector< GPU_INFO > & |
aGpuInfos | ) |
|
|
private |
◆ improveDriverVersion()
std::string KIPLATFORM::SYSINFO::improveDriverVersion |
( |
const std::string & |
aManufacturer, |
|
|
const std::string & |
aVersion |
|
) |
| |
|
private |
Attempts to convert the Windows driver version string to the vendor version string if possible.
- Parameters
-
aManufacturer | is the name of the vendor |
aVersion | is the windows driver version string to convert |
- Returns
- Vendor version string
Definition at line 188 of file windows/sysinfo.cpp.
Referenced by gpuFromDirectX().
◆ openWmi()
HRESULT KIPLATFORM::SYSINFO::openWmi |
( |
| ) |
|
|
private |
◆ variantToString()
void KIPLATFORM::SYSINFO::variantToString |
( |
const LPVARIANT |
aVar, |
|
|
std::string & |
aReturnString |
|
) |
| const |
|
private |
Converts a win32 LPVARIANT to a string.
- Parameters
-
aVar | is the LPVARIANT to be converted |
aReturnString | is the string to store the variant within |
- Returns
- LPVARIANT as string
Definition at line 478 of file windows/sysinfo.cpp.
◆ m_pClassObject
IWbemClassObject* KIPLATFORM::SYSINFO::m_pClassObject = nullptr |
|
private |
◆ m_pEnumerator
IEnumWbemClassObject* KIPLATFORM::SYSINFO::m_pEnumerator = nullptr |
|
private |
◆ m_pLoc
IWbemLocator* KIPLATFORM::SYSINFO::m_pLoc = nullptr |
|
private |
◆ m_pSvc
IWbemServices* KIPLATFORM::SYSINFO::m_pSvc = nullptr |
|
private |
The documentation for this class was generated from the following files: