[This function is available for use in the operating systems specified in the Requirements section. It may be altered or unavailable in subsequent versions. Beginning with Windows Vista, use Volume Shadow Copy Service (VSS) instead.]
The DsBackupTruncateLogs function truncates the previously read backup logs.
HRESULT DsBackupTruncateLogs( _In_ HBC hbc );
Contains the backup context handle obtained with the DsBackupPrepare function.
Returns S_OK if the function is successful or a Win32 or RPC error code otherwise. The following list lists other possible error codes.
The caller does not have the proper access privileges to call this function. The DsSetAuthIdentity function can be used to set the credentials to use for the backup and restore functions.
hbc is invalid.
Use the DsBackupTruncateLogs function when a full or incremental backup has completed successfully.
If this function is called after a differential backup, all of the incremental backup information will be lost.
|Minimum supported client
|Minimum supported server
||Windows Server 2008