Platform SDK: Active Directory, ADSI, and Directory Services |
The DsBackupGetDatabaseNames function gives the list of databases that need to be backed up for the given backup context.
HRESULT DsBackupGetDatabaseNames( HBC hbc, LPWSTR *pszAttachmentInfo, LPDWORD pcbSize );
When the array is no longer needed, the caller should free the memory allocated for the array using DsBackupFree.
One of the standard HRESULT success codes; otherwise, a failure code.
The DsBackupGetDatabaseNames function allocates a buffer of sufficient size to hold the entire attachment list. These files need to be backed up for a full backup, but not for a differential or incremental backup. In addition, the files that DsBackupGetBackupLogs returns must be backed up for a full backup.
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, DsBackupFree, DsBackupGetBackupLogs