<div class="content" name="Initialize" uuid="4ff1b962-4337-4eb7-ade7-b6dd32d54130"><p> The Initialize method starts the initialization of the
server.</p><dl>
<dd>
<div><pre> HRESULT Initialize(
   [in, unique, string] WCHAR* pwszMachineName
 );
</pre></div>
</dd></dl><p><b>pwszMachineName: </b>Reserved; this parameter is
not used.</p><p><b>Return Values: </b>The method MUST return zero or
a non-error <a href="8eef5d42-22d7-4302-aed9-12face91505a#gt_799103ab-b3cb-4eab-8c55-322821b2b235" data-linktype="relative-path">HRESULT</a> (as
specified in <a href="../ms-erref/1bc92ddf-b79e-413c-bbaa-99a5281a6c90" data-linktype="relative-path">[MS-ERREF]</a>)
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 <a href="5102cc53-3143-4268-ba4c-6ea39e999ab4" data-linktype="relative-path">2.2.3</a>.</p><p>When the server receives this message, it MUST initialize
the server and return a success value (HRESULT of 0x00000000) if the operation
is successful, or VDS_E_INITIALIZED_FAILED (HRESULT of 0x80042401) if the
operation failed. For more details about initialization, see section <a href="693b8105-e21e-40b5-9500-b661c27c5ed3" data-linktype="relative-path">3.4.3</a>.</p><p>If the <a href="26513b19-6867-4dbc-92ab-e94eb71fcdc8" data-linktype="relative-path">IVdsServiceLoader::LoadService</a>
method is used to instantiate the server, there is no need to QueryInterface
for the <a href="5116df58-e50b-44a4-9769-013bba3e0ef6" data-linktype="relative-path">IVdsServiceInitialization</a>
interface, or to call IVdsServiceInitialization::Initialize. See
IVdsServiceLoader::LoadService.</p></div>