Platform SDK: Exchange Server |
The HrBackupRead function reads one block from a backup file.
Header file: | EDBBCLI.H |
Library: | EDBBCLI.LIB |
HRESULT HrBackupRead( HBC pvBackupContext, PVOID pvBuffer, DWORD cbBuffer, PDWORD pcbRead );
Note The number of bytes read, pcbRead, may be less than the size of the buffer, cbBuffer. This does not indicate an error. Some transports fragment the buffer being transmitted instead of filling the entire buffer with data.
See Return Values.
Your application must allocate the space for the buffer where pvBuffer points and release this space with a call to BackupFree when you are finished with the buffer.
If the client or server cannot communicate via TCP/IP, the buffer must be a multiple of 4096 bytes. If your application does not use buffer sizes that are a multiple of 4096 bytes or the TCP/IP communication protocol, HrBackupRead fails.
For more information on this function, see Backing Up and Restoring Data.