I need help for a project I'm working on.
I need to **detect when a dialup connection attempt starts**, as soon as possible, before it gets connected, and **the number being dialled**
I tried with a few methods using RAS API, but on windows 2000/XP I'm able to detect a connection attempt *only after* RAS has successfully connected.
I used RasEnumConnections, and I also tried with a loop on all possible ras connection handles:
for (unsigned int count = 0x00000000; count <= 0xFFFFFFFF; ++count)
hRasConn = (HRASCONN) count;
// Get connection info
if (RasGetConnectStatus (hRasConn, &rasConnStatus) == 0)
The result is always the same, the connection is detected only once it is connected.
Does anybody know a method to achieve such goal?
I need it as soon as possible.
If you have a solution, a demo application which proves it works is welcome.
1) Complete and fully-functional working program(s) in executable form as well as complete source code of all work done.
2) Deliverables must be in ready-to-run condition, as follows? (depending on the nature? of the deliverables):
a)? For web sites or? other server-side deliverables intended to only ever exist in one place in the Buyer's environment--Deliverables must be installed by the Seller in ready-to-run condition in the Buyer's environment.
b) For all others including desktop software or software the buyer intends to distribute: A software? installation package that will install the software in ready-to-run condition on the platform(s) specified in this bid request.
3) All deliverables will be considered "work made for hire" under U.S. Copyright law. Buyer will receive exclusive and complete copyrights to all work purchased. (No GPL, GNU, 3rd party components, etc. unless all copyright ramifications are explained AND AGREED TO by the buyer on the site per the coder's Seller Legal Agreement).
All windows version