<div class="content" name="R_InetInfoGetVersion" uuid="2aa5823f-128b-4fc8-bba0-46fdc4b0ec9e"><p>The <b>R_InetInfoGetVersion</b> method is called by the
client. In response, the server returns its version information.</p><dl>
<dd>
<div><pre> DWORD R_InetInfoGetVersion(
   [in, string, unique] INET_INFO_IMPERSONATE_HANDLE pszServer,
   [in] DWORD dwReserved,
   [out] DWORD* pdwVersion
 );
</pre></div>
</dd></dl><p><b>pszServer: </b>A custom binding handle for the
target system, as specified in section <a href="a6931aa0-3ab6-4018-a398-e142cb8e409e" data-linktype="relative-path">2.1.1</a>. The value MUST NOT
be used by the server implementation.</p><p><b>dwReserved: </b>An unused parameter. MUST be
ignored by the server implementation.</p><p><b>pdwVersion: </b>A pointer to a variable. On
successful return, it MUST contain a major and minor version number for the
server implementation. The major version is stored in the low WORD, and the
minor version is stored in the high WORD.</p><p><b>Return Values: </b>The method returns 0
(ERROR_SUCCESS) to indicate success; otherwise, it returns a nonzero error
code, as specified in <a href="../ms-erref/1bc92ddf-b79e-413c-bbaa-99a5281a6c90" data-linktype="relative-path">[MS-ERREF]</a>
section <a href="../ms-erref/18d8fbe8-a967-4f1c-ae50-99ca8e491d2d" data-linktype="relative-path">2.2</a>
or [MS-ERREF] section <a href="../ms-erref/596a1078-e883-4972-9bbc-49e60bebca55" data-linktype="relative-path">2.3.1</a>.</p><dl>
<dd>
<p>ERROR_SUCCESS (0x00000000)</p>
</dd></dl><p><b>Exceptions Thrown:</b> No exceptions are thrown
beyond those thrown by the underlying <a href="ce912734-75c3-403c-8816-38e34e24df2f#gt_8a7f6700-8311-45bc-af10-82e10accd331" data-linktype="relative-path">RPC</a> protocol, as specified
in <a href="../ms-rpce/290c38b1-92fe-4229-91e6-4fc376610c15" data-linktype="relative-path">[MS-RPCE]</a>.</p><p>The value returned in <i>pdwVersion</i> SHOULD<a id="Appendix_A_Target_9"></a><a aria-label="Product behavior note 9" href="29ba1825-00cc-45cb-8b68-4758993395cd#Appendix_A_9" data-linktype="relative-path">&lt;9&gt;</a> correspond to the version of the <a href="ce912734-75c3-403c-8816-38e34e24df2f#gt_d9a0cf88-f6d7-4c52-a9fc-4ce5a7cb7260" data-linktype="relative-path">Internet protocol servers</a>
managed by the Internet Information Services (IIS) Inetinfo Remote Protocol
server.<span> </span></p></div>