Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations strongm on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Temperature Sensor problem

Status
Not open for further replies.

5888

Programmer
Apr 27, 2003
16
MY
I am having a problem for writing a CPU temperature sensor program. I have found some information at Microsoft website but I do not know how to implement it. Hopefully you guys can guide me, thank you.

This is the link:

The following is the info:

CIM_TemperatureSensor
The CIM_TemperatureSensor class exists for backward compatibility with earlier CIM schema definitions. With additions to the CIM_Sensor and CIM_NumericSensor classes in version 2.2, it is no longer necessary. A temperature sensor can be defined by setting the SensorType property, inherited from CIM_Sensor, to 2 ("Temperature"). Other properties of this class are hard-coded as constant values that correspond to definitions in the sensor hierarchy.

The following syntax is simplified from MOF code and includes all inherited properties.


class CIM_TemperatureSensor : CIM_NumericSensor
{
sint32 Accuracy;
uint16 Availability;
string Caption;
uint32 ConfigManagerErrorCode;
boolean ConfigManagerUserConfig;
string CreationClassName;
sint32 CurrentReading;
string Description;
string DeviceID;
boolean ErrorCleared;
string ErrorDescription;
datetime InstallDate;
boolean IsLinear;
uint32 LastErrorCode;
sint32 LowerThresholdCritical;
sint32 LowerThresholdFatal;
sint32 LowerThresholdNonCritical;
sint32 MaxReadable;
sint32 MinReadable;
string Name;
sint32 NominalReading;
sint32 NormalMax;
sint32 NormalMin;
string PNPDeviceID;
uint16 PowerManagementCapabilities[];
boolean PowerManagementSupported;
uint32 Resolution;
string Status;
uint16 StatusInfo;
string SystemCreationClassName;
string SystemName;
sint32 Tolerance;
sint32 UpperThresholdCritical;
sint32 UpperThresholdFatal;
sint32 UpperThresholdNonCritical;
};
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top