GetEnableFan

概要

ファンの監視が有効か無効かを取得します。

補足

取得できる設定はファンの回転制御によるもので、System Monitorの設定とは無関係です。

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


VC++ .NET

GetEnableFan
呼び出し形式 BOOL GetEnableFan(int iSelect, int *piEnable);
戻り値
TRUE 正常
FALSE エラー
引数 int iSelect
MONITOR_FAN1 CPUファン
MONITOR_FAN2 パワーファン
MONITOR_FAN3 ハードディスクファン
int *piEnable ファン監視の有効・無効
int iEnable;
BOOL ret = GetEnableFan(MONITOR_FAN3, iEnable);
必要条件
ヘッダー iocif.h/iocifconst.h
ライブラリ ioctl.lib

ページTopへ

VC# .NET

GetEnableFan
呼び出し形式 [DllImport("Ioctl.dll")] static extern int GetEnableFan (int iSelect, ref int piEnable);
戻り値
0以外 正常
0 エラー
引数 int iSelect
MONITOR_FAN1 CPUファン
MONITOR_FAN2 パワーファン
MONITOR_FAN3 ハードディスクファン
ref int piEnable ファン監視の有効・無効
int iRetrun;
int iEnable;
iReturn = GetEnableFan(MONITOR_FAN3, ref iEnable);

ページTopへ

VB .NET

GetEnableFan
呼び出し形式 Declare Function GetEnableFan Lib "Ioctl.dll"(ByVal iSelect As Integer, ByRef iEnable As Integer)As Integer
戻り値
0以外 正常
0 エラー
引数 ByVal iSelect As Integer
MONITOR_FAN1 CPUファン
MONITOR_FAN2 パワーファン
MONITOR_FAN3 ハードディスクファン
ByRef iEnable As Integer ファン監視の有効・無効
Dim ret As Integer
Dim iEnable As Integer
ret = GetEnableFan(MONITOR_FAN3, iEnable)

ページTopへ