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

Create successful ePaper yourself

Turn your PDF publications into a flip-book with our unique Google optimized e-Paper software.

Return Values: QueryFreeExtents MUST return zero to indicate success, or animplementation-specific, nonzero error code to indicate failure.Free extents are not returned for CD/DVD, or super floppy devices.If the disk has no partition format (it is not formatted as either MBR or GPT), then this methodMUST return <strong>VDS</strong>_E_DISK_NOT_INITIALIZED.When the server receives this message, it MUST validate the following parameters:•Verify that the ppFreeExtentArray parameter is not NULL.•Verify that the plNumberOfFreeExtents parameter is not NULL.The server MUST point ppFreeExtentArray to an array of <strong>VDS</strong>_DISK_FREE_EXTENT structuresthat contain information about each disk extent on the disk, point plNumberOfFreeExtents to thenumber of elements in the array, and return an HRESULT indicating failure or success.3.4.5.2.23 IVdsAdvanced<strong>Disk</strong> Methods3.4.5.2.23.1 IVdsAdvanced<strong>Disk</strong>::GetPartitionProperties (Opnum 3)The GetPartitionProperties method retrieves the properties of a partition on the disk at aspecified byte offset.HRESULT GetPartitionProperties([in] ULONGLONG ullOffset,[out] <strong>VDS</strong>_PARTITION_PROP* pPartitionProp);ullOffset: The byte offset of the partition, from the beginning of the disk. This offset MUST bethe offset of a start of a partition.pPartitionProp: A pointer to a <strong>VDS</strong>_PARTITION_PROP structure that, if the operation issuccessfully completed, receives the properties of the partition.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.Note This method is not valid for CD/DVD or super floppy devices.When the server receives this message, it MUST validate the following parameter:•Verify that pPartitionProp is not NULL.The server MUST populate the <strong>VDS</strong>_PARTITION_PROP structure that pPartitionProp referenceswith the properties of the partition at the byte offset from the beginning of the disk that ullOffsetspecifies. The server MUST then return an HRESULT indicating failure or success. For information on<strong>VDS</strong>_PARTITION_PROP, see section 2.2.1.3.20.3.4.5.2.23.2 IVdsAdvanced<strong>Disk</strong>::QueryPartitions (Opnum 4)The QueryPartitions method enumerates a disk's partitions.[<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, 2011211 / 360

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

Saved successfully!

Ooh no, something went wrong!