<div class="content" name="LastSearchSuccessDate" uuid="edb37e74-f222-4983-b1fc-4d9694386619"><p>The IAutomaticUpdatesResults::LastSearchSuccessDate (opnum
8) method retrieves the date-time of the most recent successful search done by
the <span><a href="750e8355-177c-4a51-bab8-927c813819c8#gt_b1d92af1-3c57-42f7-936f-8c56fb75e818" data-linktype="relative-path">automatic
update agent</a></span>.</p><dl>
<dd>
<div><pre> HRESULT LastSearchSuccessDate(
   [out, retval] VARIANT* retval
 );
</pre></div>
</dd></dl><p><b>retval: </b>If the date-time for the last
successful update search is not known, the <b>vt</b> field (see <span><a href="../ms-oaut/bbb05720-f724-45c7-8d17-f83c3d1a3961" data-linktype="relative-path">[MS-OAUT]</a></span>
section <span><a href="../ms-oaut/4e2e9bff-2ac5-4bab-8308-1806b256833e" data-linktype="relative-path">2.2.29.1</a></span>),
MUST be set to VT_EMPTY as specified in [MS-OAUT] section <span><a href="../ms-oaut/3fe7db9f-5803-4dc4-9d14-5425d3f5461f" data-linktype="relative-path">2.2.7</a></span>.
Otherwise, the <b>vt</b> member MUST be set to VT_DATE (see [MS-OAUT] section
2.2.7, and the date-time of the last successful update search MUST be stored in
the <b>date</b> field.</p><p><b>Return Values: </b>The method MUST return
information in an <span><a href="750e8355-177c-4a51-bab8-927c813819c8#gt_799103ab-b3cb-4eab-8c55-322821b2b235" data-linktype="relative-path">HRESULT</a></span>  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><p>This method SHOULD return a VARIANT, as specified in
[MS-OAUT] section <span><a href="../ms-oaut/a6a540af-38ac-48be-bd40-92e2c01e9aa6" data-linktype="relative-path">2.2.29.2</a></span>,
containing the value of the <b>LastSearchSuccessDate</b> ADM element.</p></div>