IUIAutomation::CreateAndCondition Method
Creates a condition that selects elements that match both of two conditions.
Syntax
HRESULT CreateAndCondition( IUIAutomationCondition *condition1, IUIAutomationCondition *condition2, IUIAutomationCondition **newCondition );
Parameters
- condition1
[in] The address of the IUIAutomationCondition interface of the first condition to match.- condition2
[in] The address of the IUIAutomationCondition interface of the second condition to match.- 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.
Remarks
A condition that combines more than two simple conditions can be created by using IUIAutomation::CreateAndConditionFromArray or IUIAutomation::CreateAndConditionFromNativeArray.
See Also
IUIAutomation::CreateAndConditionFromArray, IUIAutomationCondition, IUIAutomationElement::FindAll, IUIAutomationElement::FindAllBuildCache, IUIAutomationElement::FindFirst, IUIAutomationElement::FindFirstBuildCache