RASPPPIP (Windows Embedded CE 6.0)

1/6/2010

This structure contains the result of a PPP IP projection operation.

The RasGetProjectionInfo function returns a RASPPPIP structure when its rasprojection parameter has the value RASP_PppIp.

Syntax

#define RASPPPIPW struct tagRASPPPIPW
RASPPPIPW
{
    // Required members
    DWORD dwSize;
  DWORD dwError;
  WCHAR szIpAddress[ RAS_MaxIpAddress + 1 ];
  // Optional members
  WCHAR szServerIpAddress[ RAS_MaxIpAddress + 1 ];
  DWORD dwOptions;
  DWORD dwServerOptions;
};
#define RASPPPIP RASPPPIPW

Members

  • dwSize
    Required. Specifies the size of the structure, in bytes. Before calling the RasGetProjectionInfo function, set this member to indicate the cumulative size of the members of the RASPPPIP structure that you are using. For more information, see the Remarks section.
  • dwError
    Required. Contains the result of the PPP control protocol negotiation. A value of 0 (zero) indicates success. A nonzero value indicates failure. The value given indicates the particular error that occurred during the control protocol negotiation.
  • szIpAddress
    Required. Contains a null-terminated string that is the client's IP address on the RAS connection. For example, 11.101.237.71.
  • szServerIpAddress
    Optional. Contains a null-terminated string that is the server's IP address on the RAS connection. For example, 11.101.237.72.
  • dwOptions
    Optional. Specifies Internet Protocol Control Protocol (IPCP) options for the local client. The only currently accepted value is RASIPO_VJ, which indicates that IP datagrams sent by the local computer are compressed using Van Jacobson compression.
  • dwServerOptions
    Optional. Specifies IPCP options for the remote server. The only currently accepted value is RASIPO_VJ, which indicates that IP datagrams sent by the remote computer are compressed using Van Jacobson compression.

Remarks

To retrieve PPP IP information on Windows Embedded CEā€“based devices, dwSize must specify the size of the RASPPPIP structure that indicates the cumulative size of all members you are using. The dwSize member must at least contain the size of the required members; dwSize, dwError, and szIpAddress. Additionally, dwSize should contain the size of each of the optional members you use; szServerIpAddress, dwOptions, and dwServerOptions.

Requirements

Header ras.h
Windows Embedded CE Windows CE 5.0 and later

See Also

Reference

RAS Structures
RasGetProjectionInfo
RASPROJECTION