<div class="content"><p>The ISearchResult::RootCategories (opnum 9) method retrieves
the <span><a href="750e8355-177c-4a51-bab8-927c813819c8#gt_d098da61-5811-4b5d-a2b9-fb4eb8455464" data-linktype="relative-path">root
categories</a></span> found during the search.</p><dl>
<dd>
<div><pre> HRESULT RootCategories(
   [out, retval] ICategoryCollection** retval
 );
</pre></div>
</dd></dl><p><b>retval: </b>A collection of the root categories
found for the computer.</p><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><p>This method SHOULD return the value of the <b>RootCategories</b>
ADM element. All root categories of each update returned by the
ISearchResult::Updates (opnum 10) (section <span><a href="f18b9ae7-6028-416d-92da-04ac1a6ec851" data-linktype="relative-path">3.14.4.3)</a></span> method
MUST be contained in the collection returned by the <b>ISearchResult::RootCategories</b>
method.</p></div>