Directory Services |
The DsBackupRead function reads a block of data, from the current open file, into a buffer. The client application is expected to call this function repeatedly until the entire backup file has been received. The DsBackupOpenFile function can be used to obtain the entire size of the backup file.
HRESULT DsBackupRead( HBC hbc, PVOID pvBuffer, DWORD cbBuffer, PDWORD pcbRead );
Return Code | Description |
---|---|
ERROR_SUCCESS | The function was successful. |
ERROR_INVALID_PARAMETER | One or more parameters are invalid. |
ERROR_HANDLE_EOF | The end of the backup file was reached. |
Client: Included in Windows XP and
Windows 2000 Professional.
Server: Included in Windows Server 2003 and
Windows 2000 Server.
Header: Declared in Ntdsbcli.h.
Library: Use Ntdsbcli.lib.
DsBackupOpenFile, DsBackupPrepare, DsBackupFree, Directory Backup Functions, Backing Up and Restoring Active Directory