Microsoft SQL Server Virtual Backup Device Specification
IClientVirtualDevice::CompleteCommand
Purpose | This function is used to notify SQL Server that a command has finished. Completion information appropriate for the command should be returned. For more information, see Commands. | |
Syntax | HRESULT IClientVirtualDevice::CompleteCommand (
|
|
Parameters | Argument | Explanation |
---|---|---|
pCmd | This is the address of a command previously returned from IClientVirtualDevice::GetCommand. | |
dwCompletionCode | This is a WIN32 status code that indicates the completion status. This parameter must be returned for all commands. The code returned should be appropriate to the command being performed. ERROR_SUCCESS is used in all cases to denote a successfully executed command. For the complete list of possible codes, see the file, Winerror.h. A list of typical status codes for each command appears in Commands. | |
dwBytesTransferred | This is the number of successfully transferred bytes. This is returned only for data transfer commands Read and Write. | |
dwlPosition | This is a response to the GetPosition command only. | |
Return Values | Argument | Explanation |
NOERROR | The completion was correctly noted. | |
VD_E_INVALID | pCmd was not an active command. | |
VD_E_ABORT | Abort was signaled. | |
VD_E_PROTOCOL | The device is not open. | |
Remarks | None |