Peter,
>In a function I want to return all the Dial-up conections instaled to an array, so user can select which one to use.
>To get all Dial-up entries instaled I use RasEnumEntries function (RAS32 API) that works fine in Win95/98 but doesnt work in Win2K-Pro + SP2.(VFP 6.0 + SP5)
>
Win98 and Win2K are different Systems. Win2K is merely NT and this has another RAS-System.
In Win-NT there exists a file RasPhone.PBK Maybe You can use this.
The problem is, however that You can connect via RAS but there is no function to terminate the call after You're done, unless You employ a third Party Tool.
I have tried out several RasDialers, some are free, but the Only one I really can reccommend ist RasX by Mabry (
www.mabry.com). You have full control and can even handle callback connections. I have built wrapper classes around the COM-object and it's really working great with win 95, 98, NT and 2000.
The control is not expensive (< 50 US)
Hope this helps
Regards from Berlin (Sun is shining)
Frank Dietrich