MprConfigInterfaceCreate function (mprapi.h)
The MprConfigInterfaceCreate function creates a router interface in the specified router configuration.
DWORD MprConfigInterfaceCreate( [in] HANDLE hMprConfig, [in] DWORD dwLevel, [in] LPBYTE lpbBuffer, [out] HANDLE *phRouterInterface );
Handle to the router configuration. Obtain this handle by calling MprConfigServerConnect.
A DWORD value that describes the format in which the information is structured in the lpbBuffer parameter. Acceptable values for dwLevel include 0, 1, 2, and 3, as listed in the following table.
|3||Windows Server 2008 or later: MPR_INTERFACE_3|
Pointer to a handle variable. This variable receives a handle to the interface configuration.
If the function succeeds, the return value is NO_ERROR.
If the function fails, the return value is one of the following error codes.
At least one of the following is true:
||Insufficient resources to complete the operation.|
||Use FormatMessage to retrieve the system error message that corresponds to the error code returned.|
The MprAdminInterfaceCreate function supports the MPR_INTERFACE_2 structure. However, MprConfigInterfaceCreate does not. In order to create a demand-dial interface that is persistent after a reboot, call MprAdminInterfaceCreate with MPR_INTERFACE_2, then call MprConfigInterfaceCreate with MPR_INTERFACE_0 or MPR_INTERFACE_1.
|Minimum supported client||None supported|
|Minimum supported server||Windows 2000 Server [desktop apps only]|