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)
{
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;
hres = wmi.query(query, q_result);

View File

@@ -18,11 +18,14 @@
#define WMI "WMI"
#else
#include <unistd.h> //Linux specific filesystem operation
#include <unistd.h>
#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
class DMIInfo