IVdsVolume::ClearFlags 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.]

Clears the volume flags.

Syntax

HRESULT ClearFlags(
  [in] ULONG ulFlags
);

Parameters

[in] ulFlags

The flags enumerated by VDS_VOLUME_FLAG. Callers can clear the following flags:

VDS_VF_LBN_REMAP_ENABLED VDS_VF_HIDDEN VDS_VF_READONLY VDS_VF_NO_DEFAULT_DRIVE_LETTER VDS_VF_INSTALLABLE VDS_VF_SHADOW_COPY

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 flags were cleared successfully.
VDS_E_REVERT_ON_CLOSE_MISMATCH
0x80042462L
The flags to be cleared do not match the flags set previously with the SetFlags method and bRevertOnClose is set to TRUE.

Remarks

To create a boot volume on a dynamic disk, you must set the VDS_VF_INSTALLABLE flag for the volume and then format the volume by calling the IVdsVolumeMF::Format method.

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

IVdsVolume

IVdsVolume::SetFlags

VDS_VOLUME_FLAG