3.4.5.2.19.2 IVdsPack::GetProvider (Opnum 4)

The GetProvider method retrieves the provider that the disk pack belongs to.

 HRESULT GetProvider(
   [out] IVdsProvider** ppProvider
 );

ppProvider: A pointer to an IVdsProvider interface that, if the operation is successfully completed, receives the IVdsProvider interface of the provider object that the pack belongs to. Callers MUST release the interface when they are done with it.

Return Values: The method MUST return zero or a non-error HRESULT (as specified in [MS-ERREF]) to indicate success, or return an implementation-specific nonzero error code to indicate failure. For the HRESULT values predefined by the Virtual Disk Service Remote Protocol, see section 2.2.3.

When the server receives this message, it MUST validate the following parameter:

  • Verify that ppProvider is not NULL.

The server MUST point ppProvider to an IVdsProvider interface of the provider object that the pack object's provider pointer refers to. The server MUST then return an HRESULT indicating failure or success.