| title | IServerVirtualDevice::CloseDevice |
|---|---|
| titlesuffix | SQL Server VDI reference |
| description | This article provides reference for the IServerVirtualDevice::CloseDevice command. |
| ms.date | 08/30/2019 |
| ms.prod | sql |
| ms.prod_service | backup-restore |
| ms.technology | backup-restore |
| ms.topic | reference |
| author | mashamsft |
| ms.author | mathoma |
[!INCLUDEappliesto-ss-xxxx-xxxx-xxx-md]
The CloseDevice function closes a virtual device that had been opened with IServerVirtualDeviceSet2::OpenDevice
HRESULT IServerVirtualDevice::CloseDevice ();| Return Value | Explanation |
|---|---|
| VD_E_CLOSE | The device is already closed. |
| VD_E_ABORT | The interface is in the Abort state. |
CloseDevice is not required after SignalAbort is used to force abnormal termination. If CloseDevice is invoked after SignalAbort is used, no action is taken.
For more information, see the SQL Server virtual device interface reference overview.