MprConfigServerBackup function (mprapi.h)
The MprConfigServerBackup function creates a backup of the router-manager, interface, and phone-book configuration for the router.
Syntax
DWORD MprConfigServerBackup(
[in] HANDLE hMprConfig,
[in] LPWSTR lpwsPath
);
Parameters
[in] hMprConfig
Handle to the router configuration. Obtain this handle by calling MprConfigServerConnect.
[in] lpwsPath
Pointer to a null-terminated Unicode string that specifies the path to the directory in which to write the backup files. This path should end with a trailing backslash.
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.
Value | Meaning |
---|---|
|
The hMprConfig parameter is NULL. |
|
Insufficient resources to complete the operation. |
|
Use FormatMessage to retrieve the system error message that corresponds to the error code returned. |
Requirements
Requirement | Value |
---|---|
Minimum supported client | None supported |
Minimum supported server | Windows 2000 Server [desktop apps only] |
Target Platform | Windows |
Header | mprapi.h |
Library | Mprapi.lib |
DLL | Mprapi.dll |