请教下API GetIfEntry 的用法
RT,MSDN搜索了一下,居然没有相关的函数说明,狂晕.高手来帮下忙.
[ 本帖最后由 ceoguang 于 2009-4-4 21:31 编辑 ] 找到了,不过是VC的,转不过来
http://msdn.microsoft.com/en-us/library/aa365939(VS.85).aspx
高手帮帮忙啊 Const $tagMIB_IFROW = "wchar wszName;dword dwIndex;" & _
"dword dwType;dword dwMtu;" & _
"dword dwSpeed;dword dwPhysAddrLen;" & _
"byte PhysAddr;dword dwAdminStatus;" & _
"dword dwOperStatus;dword dwLastChange;" & _
"dword dwInOctets;dword dwInUcastPkts;" & _
"dword dwInNUcastPkts;dword dwInDiscards;" & _
"dword dwInErrors;dword dwInUnknownProtos;" & _
"dword dwOutOctets;dword dwOutUcastPkts;" & _
"dword dwOutNUcastPkts;dword dwOutDiscards;" & _
"dword dwOutErrors;dword dwOutQLen;" & _
"dword dwDescrLen;byte Descr"
$tResult = _GetIfEntry(1)
Msgbox(0, @error, DllStructGetData($tResult, "dwType"))
Func _GetIfEntry($iIndex)
Local $tMIBIFROW, $iResult
$tMIBIFROW = DllStructCreate($tagMIB_IFROW)
DllStructSetData($tMIBIFROW, 2, $iIndex)
$iResult = DllCall("Iphlpapi.dll", "dword", "GetIfEntry", _
"ptr", DllStructGetPtr($tMIBIFROW))
Return SetError($iResult, 0, $tMIBIFROW)
EndFunc ;==>_GetIfEntry http://www.autoitscript.com/forum/index.php?showtopic=34581&st=0&p=252968&hl=getifentry&fromsearch=1&#entry252968
页:
[1]