Directory Services |
The DsBackupGetDatabaseNames function obtains the list of database files that need to be backed up for the given backup context.
HRESULT DsBackupGetDatabaseNames( HBC hbc, LPTSTR* pszAttachmentInfo, LPDWORD pcbSize );
This list receives a double null-terminated list of single null terminated strings.
This buffer is allocated by the DsBackupGetDatabaseNames function and must be freed when it is no longer needed by calling the DsBackupFree function.
The first character of each of the file names contains one of the BFT Constants that identifies the type of name.
The DsBackupGetDatabaseNames function provides a list of the database files necessary for a backup. A full backup consists of the database files and the log files provided by the DsBackupGetBackupLogs function. Incremental backups of Active Directory are not supported.
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.
DsBackupPrepare, DsBackupFree, DsBackupGetBackupLogs, BFT Constants, Directory Backup Functions, Backing Up and Restoring Active Directory