--- In [email protected], "ninjariddick" <[EMAIL PROTECTED]> wrote:
>
> --- In [email protected], "swzoh" <seanzoh@> wrote:
> > You can obtain them using GetIfEntry or GetIfTable API.
> 
> I don't understand. I don't think PowerPro can call windows API. Or 
> can it?
> 
> So you are telling me that I should write my own app and get this 
> data through these APIs? That's not exactly what I wanted. :)

As you said you needed only downloaded/uploaded bytes, you may try the
following. I assumed you have only one enabled adapter.

----------------------------------------------------------------------
local tb=dll.create_array(215,"ui")
tb[129]=2 // 1-based index of the interfaces including loopback

dll.call("iphlpapi|GetIfEntry|a*",tb)

win.debug("Total bytes downloaded: "++tb[139])
win.debug("Total bytes uploaded: "++tb[145])
quit
----------------------------------------------------------------------

Sean

Reply via email to