<div class="content"><p>The IWindowsUpdateAgentInfo::GetInfo (opnum 8) method
retrieves version information for the server side of the protocol and the <span><a href="750e8355-177c-4a51-bab8-927c813819c8#gt_362092cf-7fb5-43eb-92e1-c3e4affdd92b" data-linktype="relative-path">update
agent</a></span>.</p><dl>
<dd>
<div><pre> HRESULT GetInfo(
   [in] VARIANT varInfoIdentifier,
   [out, retval] VARIANT* retval
 );
</pre></div>
</dd></dl><p><b>varInfoIdentifier: </b>A <b>VARIANT</b> (<span><a href="../ms-oaut/bbb05720-f724-45c7-8d17-f83c3d1a3961" data-linktype="relative-path">[MS-OAUT]</a></span>
section <span><a href="../ms-oaut/a6a540af-38ac-48be-bd40-92e2c01e9aa6" data-linktype="relative-path">2.2.29.2</a></span>)
containing a string specifying the type of version information to retrieve. The
<b>vt</b> member of <i>varInfoIdentifier</i> MUST be set to VT_BSTR, and the <b>BSTR</b>
([MS-OAUT] section <span><a href="../ms-oaut/9c5a5ce4-ff5b-45ce-b915-ada381b34ac1" data-linktype="relative-path">2.2.23</a></span>)
stored in the <b>bstrVal</b> member MUST case-insensitively compare equal to
one of the following values.</p><dl>
<dd>
<table><thead>
  <tr>
   <th>
   <p>bstrVal value</p>
   </th>
   <th>
   <p>Information to be retrieved</p>
   </th>
  </tr>
 </thead><tbody><tr>
  <td>
  <p>ApiMajorVersion</p>
  </td>
  <td>
  <p>The major version number of the server side of the
  protocol.</p>
  </td>
 </tr><tr>
  <td>
  <p>ApiMinorVersion</p>
  </td>
  <td>
  <p>The minor version number of the server side of the
  protocol.</p>
  </td>
 </tr><tr>
  <td>
  <p>ProductVersionString</p>
  </td>
  <td>
  <p>The version of the update agent.</p>
  </td>
 </tr></tbody></table>
</dd></dl><p><b>retval: </b>A <b>VARIANT</b> containing the
requested version information, as specified by the following table.</p><dl>
<dd>
<table><thead>
  <tr>
   <th>
   <p>varInfoIdentifier.bstrVal value</p>
   </th>
   <th>
   <p>retval</p>
   </th>
  </tr>
 </thead><tbody><tr>
  <td>
  <p>ApiMajorVersion</p>
  </td>
  <td>
  <p>The <b>vt</b> member MUST be set to VT_I4. The <b>lVal</b>
  member SHOULD<a id="Appendix_A_Target_52"></a><a aria-label="Product behavior note 52" href="50faf1ae-d0ab-42cb-87e2-33f30391e807#Appendix_A_52" data-linktype="relative-path">&lt;52&gt;</a> be set to the server&#39;s major
  version.</p>
  </td>
 </tr><tr>
  <td>
  <p>ApiMinorVersion</p>
  </td>
  <td>
  <p>The <b>vt</b> member MUST be set to VT_I4. The <b>lVal</b>
  member SHOULD<a id="Appendix_A_Target_53"></a><a aria-label="Product behavior note 53" href="50faf1ae-d0ab-42cb-87e2-33f30391e807#Appendix_A_53" data-linktype="relative-path">&lt;53&gt;</a> be set to the server&#39;s minor
  version.</p>
  </td>
 </tr><tr>
  <td>
  <p>ProductVersionString</p>
  </td>
  <td>
  <p>The <b>vt</b> member MUST be set to VT_BSTR. The <b>bstrVal</b>
  member SHOULD<a id="Appendix_A_Target_54"></a><a aria-label="Product behavior note 54" href="50faf1ae-d0ab-42cb-87e2-33f30391e807#Appendix_A_54" data-linktype="relative-path">&lt;54&gt;</a> be set to the version of the
  update agent.</p>
  </td>
 </tr></tbody></table>
</dd></dl><p><b>Return Values: </b>The method MUST return
information in an <b>HRESULT</b> data structure. The severity bit in the
structure identifies the following conditions:</p><ul><li><p><span><span>  </span></span>If
the severity bit is set to 0, the method completed successfully.</p>
</li><li><p><span><span>  </span></span>If
the severity bit is set to 1, the method failed and encountered a fatal error.</p>
</li></ul><p><b>Exceptions Thrown:</b> No exceptions are thrown beyond
those thrown by the underlying RPC protocol <span><a href="../ms-rpce/290c38b1-92fe-4229-91e6-4fc376610c15" data-linktype="relative-path">[MS-RPCE]</a></span>.</p></div>