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!

Hooking an internet connection?

Status
Not open for further replies.

LuckyLuke

Programmer
Mar 28, 2001
188
NL
Hi,

I was wondering if there's a window message that goes together with the connecting and disconnecting of an internet connection. If you know it's possible, or if you are sure it's NOT possible ;-), then please tell me... :)

LuCkY
 
Hi,

Yes there are lot of WinAPIs related to internet referred to as WinInetAPIs. You can use InternetOpen, InternetConnect, HttpOpenRequest and HttpSendRequest in the order specified to connect to a site and request for a page or to post some data to the page. There are a lot many APIs defined and you can also develope a small browser with these APIs. All these APIs are defined in the wininet.dll, which is present in the <windir>\system32 directory. Some of these APIs are also used by Internet Explorer.

I don't have any material with me right now, but you will easily find lots of sample code and explanation on how to use these APIs on net. Use &quot;WinInetAPI&quot; as the search string.


$wapnil
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top