Link to home
Start Free TrialLog in
Avatar of borgo
borgo

asked on

Detect Ras connection

How can I detect a RAS connection lunched by a specific adapter or modem ?

(Please NT and Win95 answer)
Avatar of ronit051397
ronit051397

Download this free component:
http://sme.belgium.eu.net/~vip107/rasdial.zip
ASKER CERTIFIED SOLUTION
Avatar of venks
venks

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
borgo

You can use the RasGetConnectionStatus API call

RasGetConnectStatus(
rasconn,      // handle to RAS connection of interest
rasconnstatus      // buffer to receive status data
 );

Check the win32.hlp for more info on the structures etc...

Later
BoRiS
Avatar of borgo

ASKER

Ok, I will try Venks. I trust you :-) so I give you Excelent.
But you didn't tell me if it also works on Win95/98.
Can you help me please ?

Bye