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.

•Create an object that implements the IVdsOpenV<strong>Disk</strong> interface to represent the virtual diskfile in the open state.•Point ppOpenV<strong>Disk</strong> to an IVdsOpenV<strong>Disk</strong> interface of the virtual disk object created andreturn an HRESULT indicating success.3.4.5.2.38.2 IVdsV<strong>Disk</strong>::GetProperties (Opnum 4)The GetProperties method returns details of the virtual disk.HRESULT GetProperties([out] P<strong>VDS</strong>_VDISK_PROPERTIES p<strong>Disk</strong>Properties);p<strong>Disk</strong>Properties: Receives a pointer to a <strong>VDS</strong>_VDISK_PROPERTIES (section 2.2.2.18.2.1)structure containing the disk property information.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.When the server receives this message, it MUST validate the following parameters:•Verify that p<strong>Disk</strong>Properties is not NULL.The server MUST perform the following:•Fill all the fields of <strong>VDS</strong>_VDISK_PROPERTIES.•Return an HRESULT indicating failure or success.3.4.5.2.38.3 IVdsV<strong>Disk</strong>::GetHostVolume (Opnum 5)The GetHostVolume method returns an interface pointer to the volume object for the volume onwhich the virtual disk backing store file resides.HRESULT GetHostVolume([out] IVdsVolume** ppVolume);ppVolume: Pointer to a variable that receives an IVdsVolume (section 3.1.13.1) interfacepointer for the volume. Callers MUST release the interface pointer when it is no longer neededby calling the IUnknown::Release method.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.When the server receives this message, it MUST validate the following parameters:•Verify that ppVolume is not NULL.The server MUST perform the following:[<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, 2011269 / 360

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

Saved successfully!

Ooh no, something went wrong!