GetWdtCounter

概述

获取由SetWdtCouter设置的WDT超时值。

补充



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


VC++ .NET

GetWdtCounter
调用方法 BOOL GetWdtCounter(int *iCounter);
返回值
TRUE : 正常
FALSE : 错误
参数 int iCounter 超时值
示例 int ret, iCounter;
ret = GetWdtCounter(&iCounter);
必要条件
Header : iocif.h/iocifconst.h
Library : ioctl.lib

页面顶端

VC# .NET

GetWdtCounter
调用方法 [DllImport("Ioctl.dll")] static extern int GetWdtCounter(ref int iCounter);
返回值
非0 : 正常
0 : 错误
参数 ref int iCounter 超时值
示例 int ret, iCounter;
ret = GetWdtCounter(ref iCounter);

页面顶端

VB .NET

GetWdtCounter
调用方法 Declare Function GetWdtCounter Lib "Ioctl.dll"(ByRef iCounter As Integer)As Integer
返回值
非0 : 正常
0 : 错误
参数 ByRef iCounter As Integer 超时值
示例 Dim ret As Integer
Dim iCounter As Integer
ret = GetWdtCounter(iCounter)

页面顶端