/*---------------------------------------------------------*\ | dmiinfo.h | | | | Read DMI information for motherboard vendor and name | | | | Chris M (Dr_No) 30 Jun 2020 | | | | This file is part of the OpenRGB project | | SPDX-License-Identifier: GPL-2.0-only | \*---------------------------------------------------------*/ #pragma once #include #ifdef WIN32 #include "wmi.h" #define WMI "WMI" #else #include //Linux specific filesystem operation #include #define SYSFSDMI "/sys/devices/virtual/dmi/id/" //Linux specific file path #endif class DMIInfo { public: DMIInfo(); ~DMIInfo(); std::string getMainboard(); std::string getManufacturer(); private: std::string mainboard; std::string manufacturer; };