Directory Services |
The DsSetCurrentBackupLog function sets the current backup log number after a successful restore.
HRESULT DsSetCurrentBackupLog( LPCWSTR szServerName, DWORD dwCurrentLog );
Note The server name cannot contain an underscore.
One of the standard HRESULT success codes; otherwise, a failure code.
The DsSetCurrentBackupLog function does not normally need to be called. The backup functions automatically determine and set the last log number backed up. Use DsSetCurrentBackupLog to prevent another incremental backup from succeeding until a full backup is performed.
Client: Included in Windows XP and
Windows 2000 Professional.
Server: Included in Windows Server 2003 and
Windows 2000 Server.
Unicode: Implemented as Unicode and ANSI versions.
Header: Declared in Ntdsbcli.h.
Library: Use Ntdsbcli.lib.
Backing Up and Restoring Active Directory, Directory Backup Functions, DsRestoreRegister