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.

When the server receives this message, it MUST initialize the server and return a success value(HRESULT of 0x00000000) if the operation is successful, or <strong>VDS</strong>_E_INITIALIZED_FAILED (HRESULTof 0x80042401) if the operation failed. For more information about initialization, see section 3.4.3.If the IVds<strong>Service</strong>Loader::Load<strong>Service</strong> method is used to instantiate the server, there is no needto QueryInterface for the IVds<strong>Service</strong>Initialization interface, or to callIVds<strong>Service</strong>Initialization::Initialize. See IVds<strong>Service</strong>Loader::Load<strong>Service</strong>.3.4.5.2.6 IVds<strong>Service</strong>Uninstall<strong>Disk</strong> Methods3.4.5.2.6.1 IVds<strong>Service</strong>Uninstall<strong>Disk</strong>::Get<strong>Disk</strong>IdFromLunInfo (Opnum 3)The Get<strong>Disk</strong>IdFromLunInfo method retrieves the <strong>VDS</strong> object ID of a disk that corresponds to aspecified LUN information structure.HRESULT Get<strong>Disk</strong>IdFromLunInfo([in] <strong>VDS</strong>_LUN_INFORMATION* pLunInfo,[out] <strong>VDS</strong>_OBJECT_ID* p<strong>Disk</strong>Id);pLunInfo: A pointer to a <strong>VDS</strong>_LUN_INFORMATION structure that stores the disk's LUNinformation.p<strong>Disk</strong>Id: A pointer to a <strong>VDS</strong>_OBJECT_ID structure that, if the operation is successfullycompleted, receives the <strong>VDS</strong> object ID of the disk object that corresponds to the LUNinformation that pLunInfo specifies.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 pLunInfo is not NULL.•Verify that p<strong>Disk</strong>Id is not NULL.The server MUST set p<strong>Disk</strong>Id to the <strong>VDS</strong> object identifier of the disk that matches the LUNinformation that pLunInfo specifies, and return an HRESULT that indicates failure or success.3.4.5.2.6.2 IVds<strong>Service</strong>Uninstall<strong>Disk</strong>::Uninstall<strong>Disk</strong>s (Opnum 4)The Uninstall<strong>Disk</strong>s method uninstalls a specific set of disks when it is given a list of the <strong>VDS</strong> objectIDs for the disks. All volumes that are contained wholly or partially on the disks are also uninstalled,and the obsolete mount points are removed.HRESULT Uninstall<strong>Disk</strong>s([in, size_is(ulCount)] <strong>VDS</strong>_OBJECT_ID* p<strong>Disk</strong>IdArray,[in] unsigned long ulCount,[in] boolean bForce,[out] boolean* pbReboot,[out, size_is(ulCount)] HRESULT* pResults);[<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, 2011181 / 360

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

Saved successfully!

Ooh no, something went wrong!