MPR_SERVER_1 structure (mprapi.h)

The MPR_SERVER_1 structure is used to retrieve and set the number of ports available for the Point-to-Point Tunneling Protocol (PPTP) and Layer 2 Tunneling Protocol (L2TP) on a device.

Syntax

typedef struct _MPR_SERVER_1 {
  DWORD dwNumPptpPorts;
  DWORD dwPptpPortFlags;
  DWORD dwNumL2tpPorts;
  DWORD dwL2tpPortFlags;
} MPR_SERVER_1, *PMPR_SERVER_1;

Members

dwNumPptpPorts

Specifies the number of ports configured for PPTP on the device. The maximum values for dwNumPptpPorts are listed in the following table. The value zero is not allowed.

Maximum Value Windows Version
1
Windows Server 2003, Web Edition
1000
Windows Server 2003, Standard Edition
16,384
Windows Server 2003, Datacenter Edition and Windows Server 2003, Enterprise Edition
 

If dwNumPptpPorts contains a value beyond the limit configured in the registry at service start time (the default is 1000 for Windows Server 2003, Standard Edition and Windows Server 2003, Enterprise Edition), the MprConfigServerSetInfo and MprAdminServerSetInfo functions will return ERROR_SUCCESS_REBOOT_REQUIRED.

dwPptpPortFlags

A set of bitflags that indicate if RAS or Routing is enabled on the device.

Value Meaning
MPR_ENABLE_RAS_ON_DEVICE
If set, RAS is enabled on the device.
MPR_ENABLE_ROUTING_ON_DEVICE
If set, Routing is enabled on the device.

dwNumL2tpPorts

Specifies the number of ports configured for L2TP on the device. The maximum values for dwNumL2tpPorts are listed in the following table. The value zero is not allowed.

Maximum Value Windows Version
1
Windows Server 2003, Web Edition
1000
Windows Server 2003, Standard Edition
30,000
Windows Server 2003, Datacenter Edition and Windows Server 2003, Enterprise Edition
 

If dwNumL2tpPorts contains a value beyond the limit configured in the registry at service start time (the default is 1000 for Windows Server 2003, Standard Edition and Windows Server 2003, Enterprise Edition), the MprConfigServerSetInfo and MprAdminServerSetInfo functions will return ERROR_SUCCESS_REBOOT_REQUIRED.

dwL2tpPortFlags

A set of bitflags that indicate if RAS or Routing is enabled on the device.

Value Meaning
MPR_ENABLE_RAS_ON_DEVICE
If set, RAS is enabled on the device.
MPR_ENABLE_ROUTING_ON_DEVICE
If set, Routing is enabled on the device.

Requirements

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

See also

MPR_SERVER_0

MPR_SERVER_2

MprAdminServerGetInfo

MprAdminServerSetInfo

MprConfigServerGetInfo

MprConfigServerSetInfo

Router Management Reference

Router Management Structures