HrRestorePrepare

The HrRestorePrepare function connects to a remote Microsoft Exchange Server database and prepares it for restore.

Quick Info

Header file: EDBBCLI.H
Library: EDBBCLI.LIB
Unicode: Yes

HRESULT HrRestorePrepare(
  LPTSTR szServerName,      
  LPTSTR szServiceAnnotation,  
  HBC * phbcRestoreContext  
);
 

Parameters

szServerName
Input parameter. Name of the server to restore. Preceding backslashes are optional. An example of a server name is \\server1.

Note The server name cannot contain an underscore.

szServiceAnnotation
Input parameter. The database to restore. Possible choices are EDBBACK_MDB_DATABASE and EDBBACK_DIRECTORY_DATABASE.
phbcBackupContext
Output parameter. The client-side context handle of the restore.

Return Values

See Return Values.

Remarks

The HrRestorePrepare function requires that the caller is a member of the Administrators group on the server.

For more information on this function, see Backing Up and Restoring Data.

See Also

HrRestoreEnd