IVdsDisk::ConvertStyle 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.]

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

Syntax

HRESULT ConvertStyle(
  [in] VDS_PARTITION_STYLE NewStyle
);

Parameters

[in] NewStyle

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/value Description
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

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

See also

IVdsDisk

VDS_PARTITION_INFO_GPT

VDS_PARTITION_INFO_MBR

VDS_PARTITION_STYLE