GetCurrentTemp

Outline

Temperature is acquired.

Supplement

Temperature is acquired by Celsius.

VC++ .NET VC# .NET VB .NET


VC++ .NET

GetCurrentTemp
Calling Method BOOL GetCurrentTemp(int iSelect, int *iTemp);
Return Value
TRUE : Normal
FALSE : Error
Argument int iSelect
MONITOR_TEMP1 : System temperature(Around HDD)
MONITOR_TEMP2 : CPU temperature
MONITOR_TEMP3 : System temperature(Around Battery)
int *iTemp temperature
Example int ret, iTemp;
ret = GetCurrentTemp(MONITOR_TEMP_1, &iTemp);
Necessary Condition
Header : iocif.h/iocifconst.h
Library : ioctl.lib

Top of Page

VC# .NET

GetCurrentTemp
Calling Method [DllImport("Ioctl.dll")] static extern int GetCurrentTemp(int iSelect, ref int iTemp);
Return Value
Excluding 0 : Normal
0 : Error
Argument int iSelect
MONITOR_TEMP1 : System temperature(Around HDD)
MONITOR_TEMP2 : CPU temperature
MONITOR_TEMP3 : System temperature(Around Battery)
ref int iTemp temperature
Example int ret, iTemp;
ret = GetCurrentTemp(MONITOR_TEMP1, ref iTemp);

Top of Page

VB .NET

GetCurrentTemp
Calling Method Declare Function GetCurrentTemp Lib "Ioctl.dll"(ByVal iSelect As Integer, ByRef iTemp As Integer)As Integer
Return Value
Excluding 0 : Normal
0 : Error
Argument ByVal iSelect As Integer
MONITOR_TEMP1 : System temperature(Around HDD)
MONITOR_TEMP2 : CPU temperature
MONITOR_TEMP3 : System temperature(Around Battery)
ByRef iTemp As Integer temperature
Example Dim ret As Integer
Dim iTemp As Integer
ret = GetCurrentTemp(MONITOR_TEMP_1, iTemp)

Top of Page