Share via


IUIAutomation::CreateOrCondition Method

Creates a combination of two conditions where a match exists if either of the conditions is true.

Syntax

HRESULT CreateOrCondition(      
    IUIAutomationCondition *condition1,
    IUIAutomationCondition *condition2,
    IUIAutomationCondition **newCondition
);

Parameters

  • condition1
    [in] The address of the IUIAutomationCondition interface of the first condition.
  • condition2
    [in] The address of the IUIAutomationCondition interface of the second condition.
  • newCondition
    [out, retval] The address of a variable that receives a pointer to an IUIAutomationCondition interface representing the combined condition.

Return Value

Returns S_OK if successful, or an error value otherwise.

See Also

IUIAutomation::CreateOrConditionFromArray, IUIAutomation::CreateOrConditionFromNativeArray, IUIAutomationCondition, IUIAutomationElement::FindAll, IUIAutomationElement::FindAllBuildCache, IUIAutomationElement::FindFirst, IUIAutomationElement::FindFirstBuildCache