MprConfigServerInstall
The MprConfigServerInstall function configures Routing and Remote Access Service with a default configuration.
DWORD MprConfigServerInstall(
DWORD dwLevel,
PVOID pBuffer
);
Parameters
- dwLevel
- [in] This parameter is reserved for future use, and should be zero.
- pBuffer
- [in] This parameter is reserved for future use, and should be NULL.
Return Values
If the functions succeeds, the return value is ERROR_SUCCESS.
Remarks
The MprConfigServerInstall function performs the following tasks:
- Resets the current RouterManager and Interface keys.
- Initializes RAS structures for IP.
- Sets the router type to include:
ROUTER_TYPE_RAS
ROUTER_TYPE_WAN
ROUTER_TYPE_LAN
- Sets the error logging level and authorization settings to defaults.
- Sets the devices for Routing and RAS.
- Adds the RRAS snapin to the computer management console.
- Deletes the router phone book.
- Registers the router in the domain.
- Writes out the "router is configured" registry key.
The MprConfigServerInstall function does not start Routing and RAS. Nor does it set the service start type for Routing and RAS.
Windows NT/2000: Requires Windows 2000.
Header: Declared in Mprapi.h.
Library: Use Mprapi.lib.
See Also
Windows 2000 Registry Layout