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 validate the following parameter:•Verify that ppEnum is not NULL.The server MUST point ppEnum to an IEnumVdsObject interface that contains the enumeration ofunallocated disk objects in the list of cached storage management objects, as specified in section3.4.1.3, and return an HRESULT indicating failure or success.3.4.5.2.4.6 IVds<strong>Service</strong>::GetObject (Opnum 9)The GetObject method retrieves an IUnknown pointer to a specified object.HRESULT GetObject([in] <strong>VDS</strong>_OBJECT_ID ObjectId,[in] <strong>VDS</strong>_OBJECT_TYPE type,[out] IUnknown** ppObjectUnk);ObjectId: The GUID of the desired object.type: The object type that <strong>VDS</strong>_OBJECT_TYPE enumerates. All object types are valid except<strong>VDS</strong>_OT_UNKNOWN, <strong>VDS</strong>_OT_PROVIDER, <strong>VDS</strong>_OT_ASYNC, and <strong>VDS</strong>_OT_ENUM.ppObjectUnk: A pointer to an IUnknown interface that, if the operation is successfullycompleted, receives an IUnknown interface of the object. Callers MUST release the interfacethat is received 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 ppObjectUnk is not NULL.The server MUST point ppObjectUnk to an IUnknown interface of the object in the list of cachedstorage management objects that match the <strong>VDS</strong> object identifier that ObjectId specifies and theobject type that is specified by type. The server MUST then return an HRESULT indicating failure orsuccess.If the object cannot be found in the server cache, then the server MUST return<strong>VDS</strong>_E_OBJECT_NOT_FOUND.3.4.5.2.4.7 IVds<strong>Service</strong>::QueryDriveLetters (Opnum 10)The QueryDriveLetters method enumerates the drive letters of the server.HRESULT QueryDriveLetters([in] WCHAR wcFirstLetter,[in] DWORD count,[out, size_is(count)] <strong>VDS</strong>_DRIVE_LETTER_PROP* pDriveLetterPropArray);[<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, 2011175 / 360

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

Saved successfully!

Ooh no, something went wrong!