Поделиться через


Establishing a PPTP Connection (Windows Embedded CE 6.0)

1/6/2010

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

Tasks

PPTP Samples

Concepts

PPTP Application Development