How to do pre-dial modem initialization strings with RAS?
Hello,
Environment: Visual Studio .NET 2005, C++/CLI, WinXP SP2
I have a wireless modem to which I'm trying to connect with RAS. However,
this modem requires a pre-dial initialization string in order to connect. If
I create a new Direct Connection inside my Windows Network Connections
folder, I have to configure the connection to pop up the Pre-Dial Terminal
Screen so that I can enter the pre-dial modem initialization string.
(Right-click on the connection, choose Properties, go to the General tab,
press Configure, and check the "Show terminal window" checkbox.) Once I
enter the modem init string in the Terminal Screen, my modem dials correctly,
and everything is fine.
Now, my problem is, I need to be able to do this programmatically,
completely non-interactively (i.e., without the Terminal Screen). How can I
accomplish this with RAS? (I'm currently calling RasDial() to dial the
modem.)
Thanks!
--
Whitney Kew
Senior Software Engineer
|