<div class="content"><p> </p><p>The GetProvider method retrieves the provider that the <span><a href="8eef5d42-22d7-4302-aed9-12face91505a#gt_a6543827-8d70-4e5a-a982-2fdc2e7f8bca" data-linktype="relative-path">disk pack</a></span>
belongs to.</p><dl>
<dd>
<div><pre> HRESULT GetProvider(
   [out] IVdsProvider** ppProvider
 );
</pre></div>
</dd></dl><p><b>ppProvider: </b>A pointer to an <span><a href="836226ff-97fa-43b5-b270-db09d472a499" data-linktype="relative-path">IVdsProvider</a></span>
interface that, if the operation is successfully completed, receives the
IVdsProvider interface of the provider object that the <span><a href="8eef5d42-22d7-4302-aed9-12face91505a#gt_890bb28d-df68-420f-a8bc-83899d34ad5c" data-linktype="relative-path">pack</a></span>
belongs to. Callers MUST release the interface when they are done with it.</p><p><b>Return Values: </b>The method MUST return zero or
a non-error <span><a href="8eef5d42-22d7-4302-aed9-12face91505a#gt_799103ab-b3cb-4eab-8c55-322821b2b235" data-linktype="relative-path">HRESULT</a></span> (as
specified in <span><a href="../ms-erref/1bc92ddf-b79e-413c-bbaa-99a5281a6c90" data-linktype="relative-path">[MS-ERREF]</a></span>)
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 <span><a href="5102cc53-3143-4268-ba4c-6ea39e999ab4" data-linktype="relative-path">2.2.3</a></span>.</p><p>When the server receives this message, it MUST validate the
following parameter:</p><ul><li><p><span><span> 
</span></span>Verify that <i>ppProvider</i> is not NULL.</p>
</li></ul><p>The server MUST point <i>ppProvider</i> to an IVdsProvider
interface of the provider object that the pack object&#39;s provider pointer refers
to. The server MUST then return an HRESULT indicating failure or success.</p></div>