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.

3.4.5.2.18 IVdsPack Methods3.4.5.2.18.1 IVdsPack::GetProperties (Opnum 3)The GetProperties method retrieves the properties of the disk pack that the object exposing thisinterface and method represents.HRESULT GetProperties([out] <strong>VDS</strong>_PACK_PROP* pPackProp);pPackProp: A pointer to a <strong>VDS</strong>_PACK_PROP structure that, if the operation is successfullycompleted, receives the properties of the pack.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 parameter:•Verify that pPackProp is not NULL.The server MUST populate the <strong>VDS</strong>_PACK_PROP structure that pPackProp references with theproperties of the pack. It MUST then return an HRESULT indicating failure or success. Forinformation on the <strong>VDS</strong>_PACK_PROP structure, see section 2.2.2.8.2.1.3.4.5.2.18.2 IVdsPack::GetProvider (Opnum 4)The GetProvider method retrieves the provider that the disk pack belongs to.HRESULT GetProvider([out] IVdsProvider** ppProvider);ppProvider: A pointer to an IVdsProvider interface that, if the operation is successfullycompleted, receives the IVdsProvider interface of the provider object that the pack belongsto. Callers MUST release the interface when they are done with it.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 parameter:•Verify that ppProvider is not NULL.The server MUST point ppProvider to an IVdsProvider interface of the provider object that the packobject's provider pointer refers to. The server MUST then return an HRESULT indicating failure orsuccess.[<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, 2011196 / 360

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

Saved successfully!

Ooh no, something went wrong!