Partager via


2.2.1.2.145 MPR_SERVER_SET_CONFIG_EX_1

The MPR_SERVER_SET_CONFIG_EX_1 structure<134> be used to set the configuration parameters for the RRAS.

 typedef struct _MPR_SERVER_SET_CONFIG_EX_1 {
   MPRAPI_OBJECT_HEADER_IDL Header;
   DWORD setConfigForProtocols;
   MPRAPI_TUNNEL_CONFIG_PARAMS_1 ConfigParams;
 } MPR_SERVER_SET_CONFIG_EX_1,
  *PMPR_SERVER_SET_CONFIG_EX_1;

Header: This MUST be MPRAPI_OBJECT_HEADER_IDL (section 2.2.1.2.129), the revision field MUST be 0x01, and the type field MUST be 0x03. 

setConfigForProtocols: This MUST be one of the following values that specify the type of tunnel.

Value

Meaning

MPRAPI_SET_CONFIG_PROTOCOL_FOR_PPTP

0x00000001

PPTP device configuration parameters are present in the structure.

MPRAPI_SET_CONFIG_PROTOCOL_FOR_L2TP

0x00000002

L2TP device configuration parameters are present in the structure.

MPRAPI_SET_CONFIG_PROTOCOL_FOR_SSTP

0x00000004

SSTP device configuration parameters are present in the structure.

MPRAPI_SET_CONFIG_PROTOCOL_FOR_IKEV2

0x00000008

IKEv2 device configuration parameters are present in the structure.

ConfigParams: This MUST be a MPRAPI_TUNNEL_CONFIG_PARAMS_1.