MPR_SERVER_2 structure (mprapi.h)

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

Syntax

typedef struct _MPR_SERVER_2 {
  DWORD dwNumPptpPorts;
  DWORD dwPptpPortFlags;
  DWORD dwNumL2tpPorts;
  DWORD dwL2tpPortFlags;
  DWORD dwNumSstpPorts;
  DWORD dwSstpPortFlags;
} MPR_SERVER_2, *PMPR_SERVER_2;

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 Web Server 2008
1000
Windows Server 2008 Standard
16,384
Windows Server 2008 Datacenter and Windows Server 2008 Enterprise
 

If dwNumPptpPorts contains a value beyond the limit configured in the registry at service start time (the default is 1000 for Windows Server 2008 Standard and Windows Server 2008 Enterprise), 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 Web Server 2008
1000
Windows Server 2008 Standard
30,000
Windows Server 2008 Datacenter and Windows Server 2008 Enterprise
 

If dwNumL2tpPorts contains a value beyond the limit configured in the registry at service start time (the default is 1000 for Windows Server 2008 Standard and Windows Server 2008 Enterprise), 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.

dwNumSstpPorts

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

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

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

dwSstpPortFlags

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

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

Requirements

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

See also

MPR_SERVER_0

MPR_SERVER_1

MprAdminServerGetInfo

MprAdminServerSetInfo

MprConfigServerGetInfo

MprConfigServerSetInfo

Router Management Reference

Router Management Structures