- Joined
- May 14, 2004
- Messages
- 27,046 (3.71/day)
Processor | Ryzen 7 5700X |
---|---|
Memory | 48 GB |
Video Card(s) | RTX 4080 |
Storage | 2x HDD RAID 1, 3x M.2 NVMe |
Display(s) | 30" 2560x1600 + 19" 1280x1024 |
Software | Windows 10 64-bit |
Shmem for Sensors
Effective since Build 512
Code:
/* CSensor::SENSOR_TYPE definition copied here for reference
typedef enum SENSOR_TYPE {
sUnknown,
sNumber,
sTemperature,
sVoltage,
sRPM,
sBytes,
sBytesPerSecond,
sMhz,
sPercentage,
sString,
sPWM
}; */
#define SH_MEM_VERSION 1
#define SH_MEM_NAME "SysToolSensors"
#define SH_MEM_MAX_SENSORS 128
struct SHMEM_SENSOR {
WCHAR m_name[255]; // Sensor name
WCHAR m_section[64]; // Section in which this sensor appears
CSensor::SENSOR_TYPE m_sensorType;
volatile LONG m_updateInProgress; // this is 1 when systool is writing to the sensor
UINT32 m_timestamp; // GetTickCount() of last update
VARIANT m_value;
WCHAR m_unit[8]; // Unit for text output
UINT8 m_nDecimals; // Default number of decimals for formatted output
};
struct SHMEM {
UINT32 m_version; // Version of shared memory structure
UINT16 m_nSensors; // number of records with data in m_sensors
SHMEM_SENSOR m_sensors[SH_MEM_MAX_SENSORS];
};