PPP_PROJECTION_INFO2 structure (mprapi.h)
Contains information obtained during Point-to-Point (PPP) negotiation for Secure Socket Tunneling Protocol (SSTP), Point-to-Point Tunneling Protocol (PPTP), and Layer 2 Tunneling Protocol (L2TP).
Syntax
typedef struct _PPP_PROJECTION_INFO2 {
DWORD dwIPv4NegotiationError;
WCHAR wszAddress[IPADDRESSLEN + 1];
WCHAR wszRemoteAddress[IPADDRESSLEN + 1];
DWORD dwIPv4Options;
DWORD dwIPv4RemoteOptions;
ULONG64 IPv4SubInterfaceIndex;
DWORD dwIPv6NegotiationError;
BYTE bInterfaceIdentifier[8];
BYTE bRemoteInterfaceIdentifier[8];
BYTE bPrefix[8];
DWORD dwPrefixLength;
ULONG64 IPv6SubInterfaceIndex;
DWORD dwLcpError;
DWORD dwAuthenticationProtocol;
DWORD dwAuthenticationData;
DWORD dwRemoteAuthenticationProtocol;
DWORD dwRemoteAuthenticationData;
DWORD dwLcpTerminateReason;
DWORD dwLcpRemoteTerminateReason;
DWORD dwLcpOptions;
DWORD dwLcpRemoteOptions;
DWORD dwEapTypeId;
DWORD dwEmbeddedEAPTypeId;
DWORD dwRemoteEapTypeId;
DWORD dwCcpError;
DWORD dwCompressionAlgorithm;
DWORD dwCcpOptions;
DWORD dwRemoteCompressionAlgorithm;
DWORD dwCcpRemoteOptions;
} PPP_PROJECTION_INFO2, *PPPP_PROJECTION_INFO2;
Members
dwIPv4NegotiationError
A value that specifies the result of PPP IPv4 Network control protocol negotiation. A value of 0 indicates IPv4 has been negotiated successfully. A nonzero value indicates failure, and also represents the fatal error that occurred during the control protocol negotiation.
wszAddress[IPADDRESSLEN + 1]
A null-terminated Unicode string that specifies the IPv4 address of the local client. This string has the form "a.b.c.d". The wszAddress member is valid only if dwIPv4NegotiationError is 0.
wszRemoteAddress[IPADDRESSLEN + 1]
An array that contains a Unicode string that specifies the IPv4 address of the remote server. This string has the form "a.b.c.d". The wszRemoteAddress member is valid only if the dwIPv4NegotiationError member is zero. If the address is not available, this member is an empty string.
dwIPv4Options
A value that specifies IPCP options for the local client.
Value | Meaning |
---|---|
|
Indicates that IP datagrams sent by the local client are compressed using Van Jacobson compression. |
dwIPv4RemoteOptions
A value that specifies IPCP options for the remote server.
Value | Meaning |
---|---|
|
Indicates that IP datagrams sent by the remote server (that is, received by the local computer) are compressed using Van Jacobson compression. |
IPv4SubInterfaceIndex
A value that specifies the IPv4 subinterface index corresponding to the connection on the server.
dwIPv6NegotiationError
A value that specifies the result of PPP IPv6 Network control protocol negotiation. A value of zero indicates Ipv6 has been negotiated successfully. A nonzero value indicates failure, and is the fatal error that occurred during the control protocol negotiation.
bInterfaceIdentifier[8]
An array that specifies the 64-bit IPv6 interface identifier of the client. The last 64 bits of a 128-bit IPv6 internet address are considered the interface identifier, which provides a strong level of uniqueness for the preceding 64 bits. The bInterfaceIdentifier member must not be 0 and is valid only if the dwIPv6NegotiationError member is 0.
bRemoteInterfaceIdentifier[8]
An array that specifies the 64-bit IPv6 interface identifier of the server. The last 64 bits of a 128-bit IPv6 internet address are considered the interface identifier, which provides a strong level of uniqueness for the preceding 64 bits. The bInterfaceIdentifier member must not be 0 and is valid only if the dwIPv6NegotiationError member is 0.
bPrefix[8]
A value that specifies the client interface IPv6 address prefix.
dwPrefixLength
A value that specifies the length, in bits, of the bPrefix member.
IPv6SubInterfaceIndex
A value that specifies the IPv6 subinterface index corresponding to the connection on the server.
dwLcpError
A value that specifies the result of PPP LCP negotiation. A value of zero indicates LCP has been negotiated successfully. A nonzero value indicates failure and represents the fatal error that occurred during the control protocol negotiation.
dwAuthenticationProtocol
A value that specifies the authentication protocol used to authenticate the local client. This member can be one of the following values.
Value | Meaning |
---|---|
|
Password Authentication Protocol |
|
Challenge Handshake Authentication Protocol |
|
Extensible Authentication Protocol |
dwAuthenticationData
A value that specifies additional information about the authentication protocol specified by the dwAuthenticationProtocol member. This member can be one of the following values.
Value | Meaning |
---|---|
|
MD5 CHAP |
|
Microsoft CHAP |
|
Microsoft CHAP version 2 |
dwRemoteAuthenticationProtocol
A value that specifies the authentication protocol used to authenticate the remote server. The dwAuthenticationProtocol member and the dwRemoteAuthenticationProtocol member will differ when demand dial uses different authentication protocols on the client and server. This member can be one of the following values.
Value | Meaning |
---|---|
|
Password Authentication Protocol |
|
Challenge Handshake Authentication Protocol |
|
Extensible Authentication Protocol |
dwRemoteAuthenticationData
A value that specifies additional information about the authentication protocol specified by the dwRemoteAuthenticationProtocol member. The dwAuthenticationData member and the dwRemoteAuthenticationData member will differ when demand dial uses different authentication protocols on the client and server. This member can be one of the following values.
Value | Meaning |
---|---|
|
MD5 CHAP |
|
Microsoft CHAP |
|
Microsoft CHAP version 2 |
dwLcpTerminateReason
Not Implemented. Must be 0.
dwLcpRemoteTerminateReason
Not Implemented. Must be 0.
dwLcpOptions
A value that specifies information about LCP options in use by the local client. This member is a combination of the following flags.
dwLcpRemoteOptions
A value that specifies information about LCP options in use by the remote server. This member is a combination of the following flags.
dwEapTypeId
A value that specifies the type identifier of the Extensible Authentication Protocol (EAP) used to authenticate the local client. The value of this member is valid only if the dwAuthenticationProtocol member is PPP_LCP_EAP.
dwEmbeddedEAPTypeId
A value that specifies the type identifier of the inner EAP method used in the EAP authentication. The value of this member is valid only if the dwEapTypeId member is set to PEAP defined in IANA-EAP.
dwRemoteEapTypeId
A value that specifies the type identifier of the Extensible Authentication Protocol (EAP) used to authenticate the remote server. The value of this member is valid only if the dwRemoteAuthenticationProtocol member is PPP_LCP_EAP.
dwCcpError
A value that specifies the result of PPP CCP negotiation. A value of 0 indicates CCP has been negotiated successfully. A nonzero value indicates failure, and represents the fatal error that occurred during the control protocol negotiation.
dwCompressionAlgorithm
A value that specifies the compression algorithm used by the local client. The following table shows the possible values for this member.
Value | Meaning |
---|---|
|
Microsoft Point-to-Point Compression (MPPC) Protocol. |
|
STAC option 4. |
dwCcpOptions
A value that specifies the compression types available on the local client. The following types are supported.
The last three options are used when a connection is made over Layer 2 Tunneling Protocol (L2TP), and the connection uses IPSec encryption.
dwRemoteCompressionAlgorithm
A value that specifies the compression algorithm used by the remote server. The following algorithms are supported.
Value | Meaning |
---|---|
|
Microsoft Point-to-Point Compression (MPPC) Protocol. |
|
STAC option 4. |
dwCcpRemoteOptions
A value that specifies the compression types available on the remote server. The following types are supported.
The last three options are used when a connection is made over Layer 2 Tunneling Protocol (L2TP), and the connection uses IPSec encryption.
Requirements
Requirement | Value |
---|---|
Minimum supported client | None supported |
Minimum supported server | Windows Server 2012 [desktop apps only] |
Header | mprapi.h |