GetEnableFan

概述

获取风扇监视状态:风扇有效或无效。

补充

获取的设置是用于风扇控制的,与系统监视设置无关。

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


VC++ .NET

GetEnableFan
调用方法 BOOL GetEnableFan(int iSelect, int *piEnable);
返回值
TURE : 正常
FALSE : 错误
参数 int iSelect
MONITOR_FAN1 : 系统风扇
MONITOR_FAN2 : 保留
MONITOR_FAN3 : 保留
int *piEnable 风扇监视有效或无效
示例 int iEnable;
BOOL ret = GetEnebleFan(MONITOR_FAN1, iEnable);
必要条件
Header : iocif.h/iocifconst.h
Library : ioctl.lib

页面顶端

VC# .NET

GetEnableFan
调用方法 [DllImport("Ioctl.dll")] static extern int GetEnableFan (int iSelect, ref int piEnable);
返回值
非0 : 正常
0 : 错误
参数 int iSelect
MONITOR_FAN1 : 系统风扇
MONITOR_FAN2 : 保留
MONITOR_FAN3 : 保留
ref int piEnable 风扇监视有效或无效
示例 int iRetrun;
int iEnable;
iReturn = GetEnebleFan(MONITOR_FAN1, ref iEnable);

页面顶端

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 : 系统风扇
MONITOR_FAN2 : 保留
MONITOR_FAN3 : 保留
ByRef iEnable As Integer 风扇监视有效或无效
示例 Dim ret As Integer
Dim iEnable As Integer
ret = GetEnableFan(MONITOR_FAN1, iEnable)

页面顶端