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.

•Verify that ppEnum is not NULL.The server MUST point ppEnum to an IEnumVdsObject interface that contains the enumeration ofsubsystem objects in the list of cached storage management objects that have their provider pointerset to this provider object. The server MUST then return an HRESULT to indicate failure or success.For information on enumeration objects, see section 3.4.1.3.3.4.5.2.16 IVdsVdProvider Methods3.4.5.2.16.1 IVdsVdProvider::QueryV<strong>Disk</strong>s (Opnum 3)The QueryV<strong>Disk</strong>s method returns a list of virtual disks that are managed by the provider.HRESULT QueryV<strong>Disk</strong>s([out] IEnumVdsObject** ppEnum);ppEnum: A pointer to an IEnumVdsObject (section 3.1.1.1) interface. If the operation issuccessfully completed, the pointer receives the IEnumVdsObject interface of the object,which contains an enumeration of virtual disk objects in the provider. Callers MUST release theinterface when they are finished with it.Return Values: The method MUST return zero or a nonerror 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 ppEnum is not NULL.The server MUST point ppEnum to an IEnumVdsObject interface that contains the enumeration ofvirtual disk objects in the list of cached storage management objects that have their providerpointer set to this provider object. The server MUST then return an HRESULT to indicate failure orsuccess.For information on enumeration objects, see section 2.2.2.17.1.3.4.5.2.16.2 IVdsVdProvider::CreateV<strong>Disk</strong> (Opnum 4)The CreateV<strong>Disk</strong> method defines a new virtual disk. This method creates a virtual disk file to beused as the backing store for the virtual disk.HRESULT CreateV<strong>Disk</strong>([in] PVIRTUAL_STORAGE_TYPE <strong>Virtual</strong>DeviceType,[in, string] LPWSTR pPath,[in, string, unique] LPWSTR pStringSecurityDescriptor,[in] CREATE_VIRTUAL_DISK_FLAG Flags,[in] ULONG ProviderSpecificFlags,[in] ULONG Reserved,[in] P<strong>VDS</strong>_CREATE_VDISK_PARAMETERS pCreate<strong>Disk</strong>Parameters,[in, out, unique] IVdsAsync** ppAsync);[<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, 2011191 / 360

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

Saved successfully!

Ooh no, something went wrong!