Information
The topic you requested is included in another documentation set. For convenience, it's displayed below. Choose Switch to see the topic in its original location.

IVdsDisk::ConvertStyle method

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

Converts the partition style of an empty disk from one style to another.

Syntax


HRESULT ConvertStyle(
  [in] VDS_PARTITION_STYLE NewStyle
);

Parameters

NewStyle [in]

The partition styles enumerated by VDS_PARTITION_STYLE.

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/valueDescription
S_OK

The conversion completed successfully.

VDS_E_INVALID_OPERATION
0x80042415L

The disk style cannot be converted, as is the case for 1394 or USB disks and unallocated disks.

 

Remarks

An empty disk contains no user data, OEM partitions, ESP partitions, or unknown partitions. Only LDM metadata partitions and MSR partitions are valid on an empty disk.

Requirements

Minimum supported client

Windows Vista [desktop apps only]

Minimum supported server

Windows Server 2003 [desktop apps only]

Header

Vds.h

Library

Uuid.lib

See also

IVdsDisk
VDS_PARTITION_STYLE
VDS_PARTITION_INFO_MBR
VDS_PARTITION_INFO_GPT

 

 

Show: