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 gkittelson on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Using API to determine when a program is trying to access the internet

Status
Not open for further replies.

fenris

Programmer
May 20, 1999
824
CA
I am in the begining stages of creating a program in VB that will monitor and report on software active on my computer and will allow me the ability to block the software from accessing the internet, something similar to zonealarm. I am not even sure where to begin. There must be an api or hook that will let the program know what and when something is trying to access the network (or internet). It could be similar to the netstat command. I am not to worried about things trying to connect to my computer. I am worried that zonealarm is letting some programs (for whatever reason $$$) access the net and report on my activites.

Any ideas would be greatly appreciated.
Troy Williams B.Eng.
fenris@hotmail.com

 
Hi,

I'm not sure about this, but I believe that WinSock uses Window Message, which can be subclassed. So if you make a system wide hook (a dll in C++), which looks for the FD_CONNECT message, you might get the programs trying to connect...

I'm not sure about this though, I'll try it out at my computer.

LuCkY
 
Thanks for the response. I will try and see what I can find as well. Also would the mechanism work for windows 2000 and XP as well? Because I heard that they implement the full raw sockets.
Troy Williams B.Eng.
fenris@hotmail.com

 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top