GetEnableFan

Outline

Fan monitoring is acquired whether it is valid or not.

Supplement

Acquired setting is for fan control, and not related to system monitor setting.

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


VC++ .NET

GetEnableFan
Calling Method BOOL GetEnableFan(int iSelect, int *piEnable);
Return Value
TURE : Normal
FALSE : Error
Argument int iSelect
MONITOR_FAN1 : CPU FAN
MONITOR_FAN2 : POWER FAN
MONITOR_FAN3 : HDD FAN
int *piEnable Valid or invalid of fan monitoring
Example int iEnable;
BOOL ret = GetEnableFan(MONITOR_FAN3, iEnable);
Necessary Condition
Header : iocif.h/iocifconst.h
Library : ioctl.lib

Top of Page

VC# .NET

GetEnableFan
Calling Method [DllImport("Ioctl.dll")] static extern int GetEnableFan (int iSelect, ref int piEnable);
Return Value
Excluding 0 : Normal
0 : Error
Argument int iSelect
MONITOR_FAN1 : CPU FAN
MONITOR_FAN2 : POWER FAN
MONITOR_FAN3 : HDD FAN
ref int piEnable Valid or invalid of fan monitoring
Example int iRetrun;
int iEnable;
iReturn = GetEnableFan(MONITOR_FAN3, ref iEnable);

Top of Page

VB .NET

GetEnableFan
Calling Method Declare Function GetEnableFan Lib "Ioctl.dll"(ByVal iSelect As Integer, ByRef iEnable As Integer)As Integer
Return Value
Excluding 0 : Normal
0 : Error
Argument ByVal iSelect As Integer
MONITOR_FAN1 : CPU FAN
MONITOR_FAN2 : POWER FAN
MONITOR_FAN3 : HDD FAN
ByRef iEnable As Integer Valid or invalid of fan monitoring
Example Dim ret As Integer
Dim iEnable As Integer
ret = GetEnableFan(MONITOR_FAN3, iEnable)

Top of Page