Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations bkrike on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Terminate Network traffic

Status
Not open for further replies.

lcfc

Programmer
Dec 4, 2001
27
GB
i have developed a piece of software which detects how much data has been sent and recieved by a PC, then when it gets to a specified level, say 1 GB it shuts the PC down. This is ok, but i also want the option of being able to just disable all network traffic, when a certain level is reached. Is this possible?
 
without full info of your network etc this is only a stab in the dark, but...

wNetCancelConnection API
wNetCancelConnection2 API

may be worth a look,

good luck!

If somethings hard to do, its not worth doing - Homer Simpson
------------------------------------------------------------------------
A General Guide To Excel in VB FAQ222-3383
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top