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.

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 ppPack is not NULL.The server MUST perform the following:•Create a new pack object that implements the IVdsPack interface and assign it a unique<strong>VDS</strong>_OBJECT_ID.•Set the provider pointer of the disk pack object to this provider object.•Add the pack object to the list of storage management objects.•For each callback object that is registered in the list of callback objects, call theIVdsAdviseSink::OnNotify (Opnum 3) method of the callback object with a<strong>VDS</strong>_NOTIFICATION structure that has the following attributes:•objectType member is <strong>VDS</strong>_NTT_PACK.•Pack member is a <strong>VDS</strong>_PACK_NOTIFICATION with the following attributes:•ulEvent is <strong>VDS</strong>_NF_PACK_ARRIVE.•packId is the <strong>VDS</strong>_OBJECT_ID of the pack object that was added.•Set the pointer that ppPack references to the IVdsPack interface of the pack object.•Return an HRESULT indicating failure or success.3.4.5.2.15 IVdsHwProvider Methods3.4.5.2.15.1 IVdsHwProvider::QuerySubSystems (Opnum 3)The QuerySubSystems method retrieves the subsystems that are managed by the provider.HRESULT QuerySubSystems([out] IEnumVdsObject** ppEnum);ppEnum: A pointer to an IEnumVdsObject interface. If the operation is successfully completed,the pointer receives the IEnumVdsObject interface of the object, which contains anenumeration of subsystem objects in the provider. Callers MUST release the interface whenthey are finished 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:[<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, 2011190 / 360

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

Saved successfully!

Ooh no, something went wrong!