Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How to know the internet connection details using Visual C++ Win32 API

Tags:

c++

winapi

api

I have to create a log file for all internet connections made by PC. It should have details of the username, time of connection, etc. I do know about the InternetGetConnectedState() function which returns the boolean value. Know how do I get the other details. Can some one help me out thanks in advance. I am using Win32 API and Visual c++.

like image 499
Ravi shankar Avatar asked Nov 06 '09 07:11

Ravi shankar


1 Answers

You could use Network List Manager API to get list of networks using IEnumNetworks. Then use INetwork interface to get network information.

like image 171
Kirill V. Lyadvinsky Avatar answered Nov 07 '22 01:11

Kirill V. Lyadvinsky