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 |
---|---|
|
Windows Web Server 2008 |
|
Windows Server 2008 Standard |
|
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 |
---|---|
|
If set, RAS is enabled on the 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 |
---|---|
|
Windows Web Server 2008 |
|
Windows Server 2008 Standard |
|
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 |
---|---|
|
If set, RAS is enabled on the 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 |
---|---|
|
Windows Web Server 2008 |
|
Windows Server 2008 Standard |
|
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 |
---|---|
|
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 |