Hi all. I need to create and set up a dial-up network connection in code. User will choose the modem to use, I need to set up a couple PPP parameters, a couple of modem settings and a couple of IP settings. Any pointers? Are SetupDI* functions better? TIA, Goran.
On Jul 25, 5:21 am, Goran wrote: > Hi all. > > I need to create and set up a dial-up network connection in code. User > will choose the modem to use, I need to set up a couple PPP > parameters, a couple of modem settings and a couple of IP settings. > > Any pointers? Are SetupDI* functions better? > > TIA, > Goran. Hi, You can use the following APIs to establish a RAS connection between a RAS client and a RAS server: RasGetConnectStatus() RasGetConnectionStatistics() RasEnumConnections() RasGetEntryProperties() RasGetEapUserIdentity() RasGetEntryDialParams() RasSetEntryDialParams() RasDial() RasHangUp() http://msdn2.microsoft.com/en-us/library/aa377503(VS.85).aspx http://msdn2.microsoft.com/en-us/library/aa377499(VS.85).aspx http://msdn2.microsoft.com/en-us/library/aa377284(VS.85).aspx http://msdn2.microsoft.com/en-us/library/aa377535(VS.85).aspx http://msdn2.microsoft.com/en-us/library/aa377525(VS.85).aspx http://msdn2.microsoft.com/en-us/library/aa377529(VS.85).aspx http://msdn2.microsoft.com/en-us/library/aa377821(VS.85).aspx http://msdn2.microsoft.com/en-us/library/aa377004(VS.85).aspx http://msdn2.microsoft.com/en-us/library/aa377567(VS.85).aspx Kellie.