MprConfigInterfaceSetCustomInfoEx function (mprapi.h)

Sets the custom IKEv2 policy configuration for the specified interface.


DWORD MprConfigInterfaceSetCustomInfoEx(
  [in] HANDLE               hMprConfig,
  [in] HANDLE               hRouterInterface,


[in] hMprConfig

The handle to the router configuration. Obtain this handle by calling the MprConfigServerConnect function.

[in] hRouterInterface

The handle to the interface configuration being updated. Obtain this handle by calling the MprConfigInterfaceCreate function, the MprConfigInterfaceGetHandle function, or the MprConfigInterfaceEnum function.

[in] pCustomInfo

A pointer to a MPR_IF_CUSTOMINFOEX structure.

Return value

If the function succeeds, the return value is NO_ERROR. If the function fails, the return value is one of the following error codes.

Return code Description
At least one of the following is true:
  • The hMprConfig parameter is NULL.
  • The hRouterInterface parameter is NULL.
  • The pCustomInfo parameter is NULL.
  • The interface type is not ROUTER_IF_TYPE_FULL_ROUTER.
The interface that corresponds to hRouterInterface is not present in the router configuration.


Minimum supported client None supported
Minimum supported server Windows Server 2012 [desktop apps only]
Target Platform Windows
Header mprapi.h
Library Mprapi.lib
DLL Mprapi.dll

See also

Router Configuration Functions

Router Management Reference