IVdsDiskOnline::Online method (vds.h)

[Beginning with Windows 8 and Windows Server 2012, the Virtual Disk Service COM interface is superseded by the Windows Storage Management API.]

Brings the disk online.Windows Vista:  This method is not supported until Windows Vista with Service Pack 1 (SP1). Use IVdsDisk2::SetSANMode instead.

Syntax

HRESULT Online();

Return value

This method can return standard HRESULT values, such as E_INVALIDARG or E_OUTOFMEMORY, and VDS-specific return values. It can also return converted system error codes using the HRESULT_FROM_WIN32 macro. Errors can originate from VDS itself or from the underlying VDS provider that is being used. Possible return values include the following.

Return code Description
VDS_E_FAILED_TO_ONLINE_DISK
The online operation failed.

Remarks

If a dynamic disk is read-only and offline, it can be made read/write and brought online as follows:

  1. Clear the read-only bit. (This is the VDS_DF_READ_ONLY flag in the VDS_DISK_PROP structure.)
  2. Call the Online method.
If a basic disk is read-only and offline, it can be made read/write and brought online the same way, but the order of the steps does not matter.

Requirements

Requirement Value
Minimum supported client Windows Vista with SP1 [desktop apps only]
Minimum supported server Windows Server 2008 [desktop apps only]
Target Platform Windows
Header vds.h
Library Uuid.lib

See also

IVdsDiskOnline

IVdsDiskOnline::Offline

IVdsServiceSAN::GetSANPolicy

IVdsVolumeOnline::Online