Platform SDK: Active Directory, ADSI, and 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.
Windows NT/2000: Requires Windows 2000.
Header: Declared in Ntdsbcli.h.
Library: Included as a resource in Ntdsbcli.dll.
Unicode: Implemented as Unicode and ANSI versions on Windows 2000.
Backing Up and Restoring Active Directory, Directory Backup Functions, DsRestoreRegister