forum.vdsworld.com Forum Index forum.vdsworld.com
Visit VDSWORLD.com
 
 FAQFAQ   SearchSearch   MemberlistMemberlist   UsergroupsUsergroups   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 


Bandwidth Idea?

 
Post new topic   Reply to topic    forum.vdsworld.com Forum Index -> General Help
View previous topic :: View next topic  
Author Message
Rubes_sw
Valued Contributor
Valued Contributor


Joined: 11 Jun 2001
Posts: 625
Location: Northern Ireland

PostPosted: Thu Jan 06, 2005 9:02 am    Post subject: Bandwidth Idea? Reply with quote

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
View user's profile Send private message Send e-mail Visit poster's website
Eddyy
Newbie


Joined: 16 Dec 2004
Posts: 9
Location: Puerto Rico, USA

PostPosted: Thu Jan 06, 2005 12:41 pm    Post subject: Bandwith monitor project Reply with quote

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
View user's profile Send private message
Serge
Professional Member
Professional Member


Joined: 04 Mar 2002
Posts: 1480
Location: Australia

PostPosted: Thu Jan 06, 2005 10:27 pm    Post subject: Reply with quote

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
View user's profile Send private message Visit poster's website MSN Messenger
Rubes_sw
Valued Contributor
Valued Contributor


Joined: 11 Jun 2001
Posts: 625
Location: Northern Ireland

PostPosted: Thu Jan 06, 2005 11:10 pm    Post subject: Reply with quote

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
View user's profile Send private message Send e-mail Visit poster's website
tim6389
Professional Member
Professional Member


Joined: 01 Aug 2002
Posts: 790

PostPosted: Fri Jan 07, 2005 1:54 am    Post subject: Reply with quote

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 Smile
Back to top
View user's profile Send private message
Serge
Professional Member
Professional Member


Joined: 04 Mar 2002
Posts: 1480
Location: Australia

PostPosted: Sun Jan 09, 2005 12:51 am    Post subject: Reply with quote

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
View user's profile Send private message Visit poster's website MSN Messenger
Display posts from previous:   
Post new topic   Reply to topic    forum.vdsworld.com Forum Index -> General Help All times are GMT
Page 1 of 1

 
Jump to:  
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

Twitter@vdsworld       RSS

Powered by phpBB © 2001, 2005 phpBB Group