GetCurrentTemp

概要

温度を取得します。

補足

取得できる温度は℃単位です。

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


VC++ .NET

GetCurrentTemp
呼び出し形式 BOOL GetCurrentTemp(int iSelect, int *iTemp);
戻り値
TRUE 正常
FALSE エラー
引数 int iSelect
MONITOR_TEMP1 システム温度(HDD周辺)
MONITOR_TEMP2 CPU温度
MONITOR_TEMP3 システム温度(電池付近)
int *iTemp 温度 (℃)
int ret, iTemp;
ret = GetCurrentTemp(MONITOR_TEMP_1, &iTemp);
必要条件
ヘッダー iocif.h/iocifconst.h
ライブラリ ioctl.lib

ページTopへ

VC# .NET

GetCurrentTemp
呼び出し形式 [DllImport("Ioctl.dll")] static extern int GetCurrentTemp(int iSelect, ref int iTemp);
戻り値
0以外 正常
0 エラー
引数 int iSelect
MONITOR_TEMP1 システム温度(HDD周辺)
MONITOR_TEMP2 CPU温度
MONITOR_TEMP3 システム温度(電池付近)
ref int iTemp 温度 (℃)
int ret, iTemp;
ret = GetCurrentTemp(MONITOR_TEMP1, ref iTemp);

ページTopへ

VB .NET

GetCurrentTemp
呼び出し形式 Declare Function GetCurrentTemp Lib "Ioctl.dll"(ByVal iSelect As Integer, ByRef iTemp As Integer)As Integer
戻り値
0以外 正常
0 エラー
引数 ByVal iSelect As Integer
MONITOR_TEMP1 システム温度(HDD周辺)
MONITOR_TEMP2 CPU温度
MONITOR_TEMP3 システム温度(電池付近)
ByRef iTemp As Integer 温度 (℃)
Dim ret As Integer
Dim iTemp As Integer
ret = GetCurrentTemp(MONITOR_TEMP_1, iTemp)

ページTopへ