Establishing a PPTP Connection
To establish a PPTP connection
Create a PPTP connectoid by filling in the RASENTRY structure.
Fill in the szDeviceType, szLocalPhoneNumber, and szDeviceName members with the PPTP-specific values shown in the following table.
Field Value Description szDeviceType RASDT_VPN Connection through a VPN. szLocalPhoneNumber Example:"1.2.3.4" or "MyPPTPServerName" Host name or IP address of PPTP server. szDeviceName RAS VPN Line 0 Name of the line device. Fill in all the remaining members in the RASENTRY structure as shown in the RASENTRY.
Call the RasSetEntryProperties function to set the properties for the connectoid.
To establish a PPTP connection, call the RasDial function.
When you call RasDial, the RASDIALPARAMS structure is passed in. One of the members of RASDIALPARAMS is szentryname, which is the name of the PPTP connectoid.
See Also
Last updated on Friday, April 09, 2004
© 1992-2003 Microsoft Corporation. All rights reserved.