13.07.2015 Views

[MS-VDS]: Virtual Disk Service (VDS) Protocol Specification

[MS-VDS]: Virtual Disk Service (VDS) Protocol Specification

[MS-VDS]: Virtual Disk Service (VDS) Protocol Specification

SHOW MORE
SHOW LESS

You also want an ePaper? Increase the reach of your titles

YUMPU automatically turns print PDFs into web optimized ePapers that Google loves.

•objectType member is <strong>VDS</strong>_NTT_VOLUME.•Volume member is a <strong>VDS</strong>_VOLUME_NOTIFICATION with the following attributes:•ulEvent is <strong>VDS</strong>_NF_VOLUME_MODIFY.•volumeId is the <strong>VDS</strong>_OBJECT_ID of this volume object.•Return an HRESULT indicating failure or success.Note If the client changes the partition type from a recognized partition type (a type that indicatesthe partition will be exposed as a volume) to a nonrecognized partition type, the volume associatedwith the partition will be removed, and the normal volume removal notifications will be sent.Conversely, if the client changes a partition's partition type from a nonrecognized partition type to arecognized partition type, a new volume object will be created, and the normal notificationsassociated with volume arrivals will be sent.3.4.5.2.25 IVdsCreatePartitionEx Methods3.4.5.2.25.1 IVdsCreatePartitionEx::CreatePartitionEx (Opnum 3)The CreatePartitionEx method creates a partition on a disk at a specified byte offset, with anoptional alignment parameter.HRESULT CreatePartitionEx([in] ULONGLONG ullOffset,[in] ULONGLONG ullSize,[in] unsigned long ulAlign,[in] CREATE_PARTITION_PARAMETERS* para,[out] IVdsAsync** ppAsync);ullOffset: The byte offset from the beginning of the disk where the new partition will be created.If ulAlign is not zero, the offset MUST fall within the first cylinder for an MBR disk (GPT disksdo not have this restriction).ullSize: The size of the new partition, in bytes.ulAlign: The number of bytes for volume alignment. The offset specified in ullOffset will berounded up or down to an alignment boundary. If zero is specified, the server will base thealignment value on the size of the disk on which the volume is created.para: A pointer to a CREATE_PARTITION_PARAMETERS structure that describes the newpartition to create.ppAsync: A pointer to an IVdsAsync interface that, if the operation is successfully completed,receives the IVdsAsync interface to monitor and control this operation. Callers MUST releasethe interface when they are done with it. If the IVdsAsync::Wait method is called on theinterface, the interfaces returned in the <strong>VDS</strong>_ASYNC_OUTPUT structure MUST be releasedas well. For information on asynchronous tasks, see section 3.4.5.1.9.Return Values: The method MUST return zero or a non-error HRESULT (as specified in [<strong>MS</strong>-ERREF]) to indicate success, or return an implementation-specific nonzero error code toindicate failure. For the HRESULT values predefined by the <strong>Virtual</strong> <strong>Disk</strong> <strong>Service</strong> Remote<strong>Protocol</strong>, see section 2.2.3.[<strong>MS</strong>-<strong>VDS</strong>] — v20110610<strong>Virtual</strong> <strong>Disk</strong> <strong>Service</strong> (<strong>VDS</strong>) <strong>Protocol</strong> <strong>Specification</strong>Copyright © 2011 Microsoft Corporation.Release: Friday, June 10, 2011224 / 360

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!