The ISearchResult::ResultCode (opnum 8) method retrieves the result code for the search.

 HRESULT ResultCode(
   [out, retval] OperationResultCode* retval
 );

retval: The OperationResultCode (section 2.2.9) value that specifies the overall result of the search.

Return Values: The method MUST return information in an HRESULT data structure. The severity bit in the structure identifies the following conditions:

Exceptions Thrown: No exceptions are thrown beyond those thrown by the underlying RPC protocol [MS-RPCE].

This method SHOULD return the value of the ResultCode ADM element.