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.

HRESULT Get<strong>Disk</strong>FromV<strong>Disk</strong>([in] IVdsV<strong>Disk</strong>* pV<strong>Disk</strong>,[out] IVds<strong>Disk</strong>** pp<strong>Disk</strong>);pV<strong>Disk</strong>: The IVdsV<strong>Disk</strong> interface pointer for the virtual disk.pp<strong>Disk</strong>: Pointer to a variable that receives an IVds<strong>Disk</strong> interface pointer. Callers MUST releasethe interface pointer when it is no longer needed by 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 pV<strong>Disk</strong> is not NULL.•Verify that pp<strong>Disk</strong> is not NULL.The server MUST find the cached disk object that corresponds to the passed in virtual disk. If thedisk object is found, the server MUST set pp<strong>Disk</strong> to point to it, and return an S_OK. If thecorresponding disk object is not found, the server MUST return the HRESULT error<strong>VDS</strong>_E_OBJECT_NOT_FOUND. Note that the virtual disk MUST be attached.3.4.5.2.16.5 IVdsVdProvider::GetV<strong>Disk</strong>From<strong>Disk</strong> (Opnum 7)The GetV<strong>Disk</strong>From<strong>Disk</strong> method returns an IVdsV<strong>Disk</strong> (section 3.1.15.1) interface pointer forthe virtual disk given an IVds<strong>Disk</strong> (section 3.1.12.1) interface pointer.HRESULT GetV<strong>Disk</strong>From<strong>Disk</strong>([in] IVds<strong>Disk</strong>* p<strong>Disk</strong>,[out] IVdsV<strong>Disk</strong>** ppV<strong>Disk</strong>);p<strong>Disk</strong>: The IVds<strong>Disk</strong> interface pointer to a disk.ppV<strong>Disk</strong>: Pointer to a variable that receives an IVdsV<strong>Disk</strong> interface pointer. Callers MUSTrelease the interface pointer when it is no longer needed by calling the IUnknown::Releasemethod.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> is not NULL.•Verify that ppV<strong>Disk</strong> is not NULL.The server MUST find the cached virtual disk object that corresponds to the passed in disk. If thevirtual disk object is found, the server MUST set ppV<strong>Disk</strong> to point to it and return an S_OK. If the[<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, 2011194 / 360

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

Saved successfully!

Ooh no, something went wrong!