Sorry, forgot the link:
http://forums.microsoft.co
Main Topics
Browse All TopicsWindows Measurements Instrumentation interface contain a method to get CPU temperature but from what I have read, it is not implemented for most motherboards.
Still, lots of products e.g. Sisoftware,MotherBoard monitor ,PC Wizard 2008 offer this service. How do they get this data? Is it possible to inquire with the BIOS? Is it Kernel Mode funcitonality?
Any input - most welcome
This Question has been solved and asker verified All Experts Exchange premium technology solutions are available to subscription members.
Experts Exchange has been collecting answers to technology questions since 1996…3 million and counting! If you have a question, chances are we already have your answer.
If you can't find the exact answer you're looking for, ask our exclusive community of 50,000 experts. You’ll get a personalized answer from a trusted professional.
Thousands of free tech tips, tricks, how-to’s and tutorials are available in our peer reviewed articles section. See for yourself how smart our experts are, no login required.
Access the answers to your technology questions today.
30-day free trial. Register in 60 seconds.
Members of the expert community talk about why the experience at Experts Exchange is different than what you will find anywhere else.

Try it out and discover for yourself.
30-day free trial. Register in 60 seconds.
Join the community of experts here and help other tech pros by answering question in your area of expertise. You can earn FREE access to all Experts Exchange's premium features and resources.
Sorry, forgot the link:
http://forums.microsoft.co
Usually a vendor-specific driver reads that data and reports it, yet the driver interface might not be documented. One common way would be WMI, but that might not always work. Could you try
strComputer = "."
Set objWMIService = GetObject("winmgmts:\\" & strComputer & "\root\WMI")
Set wbemObjectSet = objWMIService.ExecQuery ("SELECT * FROM MSAcpi_ThermalZoneTemperat
For Each wbemObject In wbemObjectSet
wscript.echo "-------------------------
wscript.echo "MSAcpi_ThermalZoneTempera
wscript.echo "-------------------------
wscript.echo wbemObject.CurrentTemperat
Next
to see whether that works?
The C++ version would be
CoInitialize(NULL);
if (CoInitializeSecurity(NULL
RPC_C_IMP_LEVEL_IMPERSONAT
return;
IWbemLocator* pIWbemLocator = NULL;
IWbemServices* pWbemServices = NULL;
IEnumWbemClassObject* pEnumObject = NULL;
BSTR bstrNamespace = (L"root\\cimv2");
if (CoCreateInstance (
CLSID_WbemAdministrativeLo
NULL ,
CLSCTX_INPROC_SERVER | CLSCTX_LOCAL_SERVER ,
IID_IUnknown ,
( void ** ) & pIWbemLocator) != S_OK)
return;
if (pIWbemLocator->ConnectSer
NULL, NULL,&pWbemServices) != S_OK)
return;
HRESULT hRes;
BSTR strQuery = (L"Select * from MSAcpi_ThermalZoneTemperat
BSTR strQL = (L"WQL");
hRes = pWbemServices->ExecQuery(s
WBEM_FLAG_RETURN_IMMEDIATE
if (hRes != S_OK)
{
MessageBox("Could not execute Query");
return;
}
hRes = pEnumObject->Reset();
if (hRes != S_OK)
{
MessageBox("Could not Enumerate");
return;
}
ULONG uCount = 1, uReturned;
IWbemClassObject* pClassObject = NULL;
hRes = pEnumObject->Next(WBEM_INF
if(hRes != S_OK)
{
MessageBox("Could not Enumerate");
return;
}
VARIANT v;
BSTR strClassProp = SysAllocString(L"CurrentTe
hRes = pClassObject->Get(strClass
if (hRes != S_OK)
{
MessageBox("Could not Get Value");
return;
}
SysFreeString(strClassProp
_bstr_t bstrPath = &v; //Just to convert BSTR to ANSI
char* strPath=(char*)bstrPath;
if (SUCCEEDED(hRes))
MessageBox(strPath);
else
MessageBox("Error in getting object");
VariantClear(&v);
pIWbemLocator->Release();
pWbemServices->Release();
pEnumObject->Release();
pClassObject->Release();
CoUninitialize();
See if this helps...
http://www.experts-exchang
Business Accounts
Answer for Membership
by: slado2Posted on 2007-11-26 at 10:13:49ID: 20351705
Check this article about reading cpu temperature using WMI.
Select allOpen in new window