Establishing a PPTP Connection (Windows CE 5.0)

Send Feedback

To establish a PPTP connection

  1. 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.
  2. Fill in all the remaining members in the RASENTRY structure as shown in the RASENTRY.

  3. Call the RasSetEntryProperties function to set the properties for the connectoid.

  4. 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

Feedback FAQs

© 2006 Microsoft Corporation. All rights reserved.