MPR_SERVER_SET_CONFIG_EX0 structure (mprapi.h)

The MPR_SERVER_SET_CONFIG_EX structure is used to get or set the tunnel configuration information of a RAS server.

Syntax

typedef struct _MPR_SERVER_SET_CONFIG_EX0 {
  MPRAPI_OBJECT_HEADER         Header;
  DWORD                        setConfigForProtocols;
  MPRAPI_TUNNEL_CONFIG_PARAMS0 ConfigParams;
} MPR_SERVER_SET_CONFIG_EX0, *PMPR_SERVER_SET_CONFIG_EX0;

Members

Header

A MPRAPI_OBJECT_HEADER structure that specifies the version of the MPR_SERVER_SET_CONFIG_EX structure.

Note  The revision member of Header must be MPRAPI_MPR_SERVER_SET_CONFIG_OBJECT_REVISION_1 and type must be MPRAPI_OBJECT_TYPE_MPR_SERVER_SET_CONFIG_OBJECT.
 

setConfigForProtocols

A value that specifies the tunnel type in ConfigParams. The following tunnel types are supported:

Value Meaning
MPRAPI_SET_CONFIG_PROTOCOL_FOR_PPTP
Point-to-Point Protocol (PPTP)
MPRAPI_SET_CONFIG_PROTOCOL_FOR_L2TP
Layer 2 Tunneling Protocol (L2TP)
MPRAPI_SET_CONFIG_PROTOCOL_FOR_SSTP
Secure Socket Tunneling Protocol (SSTP)
MPRAPI_SET_CONFIG_PROTOCOL_FOR_IKEV2
Internet Key version 2 (IKEV2)

ConfigParams

A MPRAPI_TUNNEL_CONFIG_PARAMS structure that contains the tunnel configuration information for the tunnel type specified in setConfigForProtocols.

Requirements

Requirement Value
Minimum supported client None supported
Minimum supported server Windows Server 2008 R2 [desktop apps only]
Header mprapi.h

See also

Router Management Reference

Router Management Structures