Skip to content

Latest commit

 

History

History
39 lines (28 loc) · 1.1 KB

File metadata and controls

39 lines (28 loc) · 1.1 KB
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

IServerVirtualDevice::CloseDevice (VDI)

[!INCLUDEappliesto-ss-xxxx-xxxx-xxx-md]

The CloseDevice function closes a virtual device that had been opened with IServerVirtualDeviceSet2::OpenDevice

Syntax

HRESULT IServerVirtualDevice::CloseDevice ();

Return Value

Return Value Explanation
VD_E_CLOSE The device is already closed.
VD_E_ABORT The interface is in the Abort state.

Remarks

CloseDevice is not required after SignalAbort is used to force abnormal termination. If CloseDevice is invoked after SignalAbort is used, no action is taken.

Next steps

For more information, see the SQL Server virtual device interface reference overview.