is it possible for a C ++ guru to adapt this code for a Rainmeter plugin ?įoreach(var hardware in thisComputer.Hardware)įoreach(var subhardware in hardware.SubHardware)įoreach(var sensor in subhardware.Sensors) If (sensor.SensorType = SensorType.Temperature)Ĭonsole.WriteLine('', sensor.Name, sensor.Hardware, sensor.SensorType, sensor.Value) ĭo not like doing that, but my knowledge of C ++ are more than light. Protected virtual void ActivateSensor(ISensor sensor)įoreach (var hardwareItem in m圜omputer.Hardware)Ĭonsole.WriteLine(hardwareItem.GetReport()) įoreach (var sensor in hardwareItem.Sensors) Public event SensorEventHandler SensorRemoved
Public event SensorEventHandler SensorAdded
Protected readonly ListSet active = new ListSet()