DesiredSpeed
Data type: uint64
Access type: Read/write
Currently requested fan speed, defined in revolutions per minute, when a variable speed fan is supported (VariableSpeed is TRUE). The current speed is determined by a sensor (CIM_Tachometer) that is associated with the fan using the CIM_AssociatedSensor relationship. This property is inherited from CIM_Fan.
这句话里的两个连接看下有没有用
class Win32_Fan : CIM_Fan
{
boolean ActiveCooling;
uint16 Availability;
string Caption;
uint32 ConfigManagerErrorCode;
boolean ConfigManagerUserConfig;
string CreationClassName;
string Description;
uint64 DesiredSpeed;
string DeviceID;
boolean ErrorCleared;
string ErrorDescription;
datetime InstallDate;
uint32 LastErrorCode;
string Name;
string PNPDeviceID;
uint16 PowerManagementCapabilities[];
boolean PowerManagementSupported;
string Status;
uint16 StatusInfo;
string SystemCreationClassName;
string SystemName;
boolean VariableSpeed;
};
DesiredSpeed
Data type: uint64
Access type: Read/write
Currently requested fan speed, defined in revolutions per minute, when a variable speed fan is supported (VariableSpeed is TRUE). The current speed is determined by a sensor (CIM_Tachometer) that is associated with the fan using the CIM_AssociatedSensor relationship. This property is inherited from CIM_Fan.
For more information about using uint64 values in scripts, see Scripting in WMI.
这个不是么?网上看了下,好像有些主板也不支持WMI获取fan的接口。
不行就只有试试SMBIOS了。如果是windows xp系统,应该还可以在用户态下映射物理内存文件。