GetCurrentFan

概要

ファンの回転数を取得します。

補足

取得できる回転数はrpmです。

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


VC++ .NET

GetCurrentFan
呼び出し形式 BOOL GetCurrentFan(int iSelect, int *iFan);
戻り値
TRUE 正常
FALSE エラー
引数 int iSelect
MONITOR_FAN1 CPUファン
MONITOR_FAN2 パワーファン
int *iFan ファンの回転数を格納
int ret, iFan;
ret = GetCurrentFan(MONITOR_FAN2, &iFan);
必要条件
ヘッダー iocif.h/iocifconst.h
ライブラリ ioctl.lib

ページTopへ

VC# .NET

GetCurrentFan
呼び出し形式 [DllImport("Ioctl.dll")] static extern int GetCurrentFan(int iSelect, ref int iFan);
戻り値
0以外 正常
0 エラー
引数 int iSelect
MONITOR_FAN1 CPUファン
MONITOR_FAN2 パワーファン
ref int iFan ファンの回転数を格納
int ret, iFan;
ret = GetCurrentFan(MONITOR_FAN2, ref iFan);

ページTopへ

VB .NET

GetCurrentFan
呼び出し形式 Declare Function GetCurrentFan Lib "Ioctl.dll"(ByVal iSelect As Integer, ByRef iFan As Integer)As Integer
戻り値
0以外 正常
0 エラー
引数 ByVal iSelect As Integer
MONITOR_FAN1 CPUファン
MONITOR_FAN2 パワーファン
ByRef iFan As Integer ファンの回転数を格納
Dim ret As Integer
Dim iFan As Integer
ret = GetCurrentFan(MONITOR_FAN2, iFan)

ページTopへ