API browser of tarmedValidator100 COM module


/images/arrow_right.png ISearch::FindDescendant method
Method to find any services that are descendants of a base service using a recursive-decent approach.
 
PATCH to restrict the result space to services that are not 123 aka "First-Next-Last" type services (cf. bstrCode argument).
space
 
/images/arrow_right.png C/C++ calling syntax
HRESULT FindDescendant( BSTR
BSTR
BSTR
long
VARIANT_BOOL
bstrCode,
*pbstrDescendantCode,
*pbstrDescendantReference,
*plLevel,
*pbStatus);
 
/images/arrow_right.png Calling argument description
[in] BSTR bstrCode Base service code.
 
PATCH: bstrCode can be appended with the instruction "#no123TypeServices" to restrict the search space to services that are not 123 aka "First-Next-Last" type services.
[out] BSTR *pbstrDescendantCode Descendant service code.
[out] BSTR *pbstrDescendantReference Immediate parent reference code of the descendant service (note that this may differ from the base service code, since the entire descendant tree is searched).
[out] long *plLevel The nesting level of the descendant service code.
[out, retval] VARIANT_BOOL *pbStatus Return status of the method
 
/images/arrow_right.png C/C++ return value
S_OK This value is returned if the function call was successful or if the return value of a boolean method signalling a true value. In this case the VARIANT_BOOL is set to VARIANT_TRUE.
S_FALSE This is the return value of a boolean method signalling a false return value. In this case the VARIANT_BOOL is set to VARIANT_FALSE.
E_name This value is returned if the function call was unsuccessful and an error exception was generated. Note that if you are using SmartPointers an exception is thrown under these conditions.