Brings the disk online.Windows Vista: This method is not supported until Windows Vista with Service Pack 1 (SP1). Use IVdsDisk2::SetSANMode instead.
HRESULT Online( );
This method has no parameters.
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.
||The online operation failed.|
If a dynamic disk is read-only and offline, it can be made read/write and brought online as follows:
- Clear the read-only bit. (This is the VDS_DF_READ_ONLY flag in the VDS_DISK_PROP structure.)
- Call the Online method.
|Minimum supported client||Windows Vista with SP1 [desktop apps only]|
|Minimum supported server||Windows Server 2008 [desktop apps only]|