Quantcast
Channel: VBForums - Visual Basic 6 and Earlier
Viewing all articles
Browse latest Browse all 21845

get packets status. (send/received)

$
0
0
I have question.

I want to get packets value. (send/received), mean
list1.additem dwOutOctets '20
list1.additem dwInOctets '0
but use this api (dwOutOctets, dwInOctets) , but that value is NOT windows that value?

how to correct get that value, as same as windows see this (pictute)

please!

Code:

Private Declare Function GetIfTable Lib "iphlpapi.dll" (ByRef pIfTable As Any, ByRef pdwSize As Long, ByVal bOrder As Long) As Long
Private Type MIB_IFROW
  wszName(0 To (MAX_INTERFACE_NAME_LEN - 1) * 2) As Byte
  dwIndex              As Long
  dwType              As Long
  dwMtu                As Long
  dwSpeed              As Long
  dwPhysAddrLen        As Long
  bPhysAddr(0 To MAXLEN_PHYSADDR - 1) As Byte
  dwAdminStatus        As Long
  dwOperStatus        As Long
  dwLastChange        As Long
  dwInOctets          As Long
  dwInUcastPkts        As Long
  dwInNUcastPkts      As Long
  dwInDiscards        As Long
  dwInErrors          As Long
  dwInUnknownProtos    As Long
  dwOutOctets          As Long
  dwOutUcastPkts      As Long
  dwOutNUcastPkts      As Long
  dwOutDiscards        As Long
  dwOutErrors          As Long
  dwOutQLen            As Long
  dwDescrLen          As Long
  bDescr(0 To MAXLEN_IFDESCR - 1) As Byte
 
End Type

http://support.gateway.com/support/m...s/wireless.jpgAttachment 93549

EDIT: source, http://en.allexperts.com/q/Visual-Ba...ived-bytes.htm
Attached Images
 

Viewing all articles
Browse latest Browse all 21845

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>