GetCurrentFan

Outline

Fan speed is acquired.

Supplement

Fan speed is acquired by rpm.

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


VC++ .NET

GetCurrentFan
Calling Method BOOL GetCurrentFan(int iSelect, int *iFan);
Return Value
TRUE : Normal
FALSE : Error
Argument int iSelect
MONITOR_FAN1 : CPU FAN
MONITOR_FAN2 : POWER FAN
int *iFan Fan speed
Example int ret, iFan;
ret = GetCurrentFan(MONITOR_FAN2, &iFan);
Necessary Condition
Header : iocif.h/iocifconst.h
Library : ioctl.lib

Top of Page

VC# .NET

GetCurrentFan
Calling Method [DllImport("Ioctl.dll")] static extern int GetCurrentFan(int iSelect, ref int iFan);
Return Value
Excluding 0 : Normal
0 : Error
Argument int iSelect
MONITOR_FAN1 : CPU FAN
MONITOR_FAN2 : POWER FAN
ref int iFan Fan speed
Example int ret, iFan;
ret = GetCurrentFan(MONITOR_FAN2, ref iFan);

Top of Page

VB .NET

GetCurrentFan
Calling Method Declare Function GetCurrentFan Lib "Ioctl.dll"(ByVal iSelect As Integer, ByRef iFan As Integer)As Integer
Return Value
Excluding 0 : Normal
0 : Error
Argument ByVal iSelect As Integer
MONITOR_FAN1 : CPU FAN
MONITOR_FAN2 : POWER FAN
ByRef iFan As Integer Fan speed
Example Dim ret As Integer
Dim iFan As Integer
ret = GetCurrentFan(MONITOR_FAN2, iFan)

Top of Page