Clean up comment formatting in DMI info files

This commit is contained in:
Adam Honse 2025-07-12 21:10:11 -05:00
parent 64686c92cd
commit 2335259dd6
2 changed files with 10 additions and 6 deletions

View file

@ -34,10 +34,11 @@ DMIInfo::DMIInfo()
std::string DMIInfo::readWMIQuery(std::string query, std::string key) std::string DMIInfo::readWMIQuery(std::string query, std::string key)
{ {
HRESULT hres; HRESULT hres;
Wmi wmi; Wmi wmi;
// Query WMI for Win32_PnPSignedDriver entries with names matching "SMBUS" or "SM BUS" /*-----------------------------------------------------*\
// These devices may be browsed under Device Manager -> System Devices | Query WMI |
\*-----------------------------------------------------*/
std::vector<QueryObj> q_result; std::vector<QueryObj> q_result;
hres = wmi.query(query, q_result); hres = wmi.query(query, q_result);

View file

@ -18,11 +18,14 @@
#define WMI "WMI" #define WMI "WMI"
#else #else
#include <unistd.h> //Linux specific filesystem operation #include <unistd.h>
#include <fstream> #include <fstream>
#define SYSFS_MB_DMI "/sys/devices/virtual/dmi/id/" //Linux file path for Motherboard /*---------------------------------------------------------*\
#define SYSFS_PC_DMI "/sys/class/dmi/id/" //Linux file path for Product info | Linux file paths for Motherboard and Product Info |
\*---------------------------------------------------------*/
#define SYSFS_MB_DMI "/sys/devices/virtual/dmi/id/"
#define SYSFS_PC_DMI "/sys/class/dmi/id/"
#endif #endif
class DMIInfo class DMIInfo