Establishing a PPTP Connection (Windows CE 5.0)
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
PPTP Application Development | PPTP Samples
Send Feedback on this topic to the authors