Platform SDK: Active Directory, ADSI, and Directory Services

DsRestoreRegisterComplete

The DsRestoreRegisterComplete completes a restore operation, allowing subsequent restore operations.

HRESULT DsRestoreRegisterComplete(
  HBC hbc,
  HRESULT hrRestoreState
);

Parameters

hbc
[in] The client context handle of the restore.
hrRestoreState
[in] Success code if the restore was successful.

Whether the restored database can be restarted.

hrNone
The service can restart.

Otherwise, the service cannot restart.

Return Values

One of the standard HRESULT success codes; otherwise, a failure code otherwise.

Remarks

DsRestoreRegisterComplete allows the restore target to start if hrRestoreState is hrNone. Otherwise, DsRestoreRegisterComplete prevents the restore target from restarting.

Requirements

  Windows NT/2000: Requires Windows 2000.
  Header: Declared in Ntdsbcli.h.
  Library: Included as a resource in Ntdsbcli.dll.

See Also

Backing Up and Restoring Active Directory, Directory Backup Functions, DsRestoreRegister