| View previous topic :: View next topic |
| Author |
Message |
Rubes_sw Valued Contributor


Joined: 11 Jun 2001 Posts: 625 Location: Northern Ireland
|
Posted: Thu Jan 06, 2005 9:02 am Post subject: Bandwidth Idea? |
|
|
Has anyone any idea how to?
Record a users Bandwidth. eg.
You could use Dr. Dreads Dreadnet.dll to obtain the stats of a network device, I want to then record that information into the registry.
I want to be able to show a monthly bandwidth usage, eg. how many bytes have been sent/received that month.
The computer will be shutdown & restarted etc, so the info in the reg has to be up-to-date.
I know how to use Dreads Dll, And i am confident in managing the registry.
Any ideas would be great, example code would be better. |
|
| Back to top |
|
 |
Eddyy Newbie
Joined: 16 Dec 2004 Posts: 9 Location: Puerto Rico, USA
|
Posted: Thu Jan 06, 2005 12:41 pm Post subject: Bandwith monitor project |
|
|
| LOL you are working the same project as I do. I'm also using DR.Dredd. I'm also planning to do the registry stuff. Good luck. |
|
| Back to top |
|
 |
Serge Professional Member


Joined: 04 Mar 2002 Posts: 1480 Location: Australia
|
Posted: Thu Jan 06, 2005 10:27 pm Post subject: |
|
|
you don't say under what version of windows - the reason i say this is that under 98 and me, there are a number of registry entries that automatically monitor internet traffic (and more) and it becomes the case of just reading them and converting them to decimal notation
serge _________________
|
|
| Back to top |
|
 |
Rubes_sw Valued Contributor


Joined: 11 Jun 2001 Posts: 625 Location: Northern Ireland
|
Posted: Thu Jan 06, 2005 11:10 pm Post subject: |
|
|
I intend to use Dr. Dreads Dll to obtain all the Network Traffic from the Network Card.
And add it cumlativly and store it in the registry.
It needs to be a monthly total: eg. script so far:
| Code: |
Rem When Program starts add:
REGISTRY WRITE,LOCAL,Software\Activeware\MM\Config,PCRUNNING,1
%%Bandwidth_Used = @regread(LOCAL,Software\Activeware\MM\Data,@datetime(mmmm))
:evloop
wait event,5
%%event = @event()
goto %%event
:timer
list create,1
list assign,1,@dnet(GenStats)
if @not(@equal(@count(1),0))
list seek,1,3
option fieldsep,|
parse "%%data_name;%%recevied;%%sent",@item(1)
if @null(%%recevied)
%%recevied = 0
end
if @null(%%sent)
%%sent = 0
end
dialog set,text14,@format(@fdiv(@fdiv(%%recevied,1024),1024),6.2) Mb
dialog set,text12,@format(@fdiv(@fdiv(%%sent,1024),1024),6.2) Mb
%%todays = @fadd(%%recevied,%%sent)
if @null(%%Bandwidth_used)
%%Bandwidth_used = 0
end
%%is_pc_on = @regread(LOCAL,Software\Activeware\MM\Config,PCRUNNING)
if @equal(%%is_pc_on,1)
%%new_Bandwidth_used = @fadd(%%todays,%%Bandwidth_used)
else
%%new_Bandwidth_used = %%todays
end
dialog set,text16,@format(@fdiv(@fdiv(%%new_Bandwidth_used,1024),1024),6.2) Mb
end
list close,1
|
Nathan |
|
| Back to top |
|
 |
tim6389 Professional Member


Joined: 01 Aug 2002 Posts: 790
|
Posted: Fri Jan 07, 2005 1:54 am Post subject: |
|
|
Serge - do you have any web links on thoses setting for 98,xp?
also to i would like to find a web site that has ALL I.E registry setting to for 98/xp
thanks _________________ Have a nice day  |
|
| Back to top |
|
 |
Serge Professional Member


Joined: 04 Mar 2002 Posts: 1480 Location: Australia
|
Posted: Sun Jan 09, 2005 12:51 am Post subject: |
|
|
hi tim,
not off hand but the registry key you are wanting to check out is HKEY_DYN_DATA
may be conducting a search using that key may give you the results you seek
i did write a program once that accessed the internet data only, i could send you the code so you could see how to access the keys and change them to decimal (it was written in vds 4)
let me know
serge _________________
|
|
| Back to top |
|
 |
|
|
You cannot post new topics in this forum You cannot reply to topics in this forum You cannot edit your posts in this forum You cannot delete your posts in this forum You cannot vote in polls in this forum You can attach files in this forum You can download files in this forum
|
|