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