MprConfigServerBackup

[This is preliminary documentation and subject to change.]

The MprConfigServerBackup function creates a backup of the router-manager, interface, and phonebook configuration for the router.

DWORD  MprConfigServerBackup (
    HANDLE    hMprConfig,    // handle to the router configuration
    LPWSTR    lpwsPath       // path to backup directory
) 

Parameters

hMprConfig
Handle to the router configuration. Obtain this handle by calling MprConfigServerConnect.
lpwsPath
Pointer to a Unicode string that contains the path to the directory where MprConfigServerBackup to write the backup files. This path should end with a trailing backslash.

Return Values

NO_ERROR
The configuration was backed up successfully.
ERROR_INVALID_PARAMETER
The hMprConfig parameter is NULL.
ERROR_NOT_ENOUGH_MEMORY
Insufficient resources to complete the operation.
Other
Use FormatMessage to retrieve the system error message corresponding to the error code returned.

QuickInfo

  Windows NT: Use version 5.0 and later.
  Windows: Unsupported.
  Windows CE: Unsupported.
  Header: Declared in mprapi.h.
  Import Library: Link with mprapi.lib.

See Also

FormatMessage, MprConfigServerConnect, MprConfigServerRestore