IUIAutomation::CreateNotCondition Method

Creates a condition that is the negative of a specified condition.

Syntax

HRESULT CreateNotCondition(      
    IUIAutomationCondition *condition,
    IUIAutomationCondition **newCondition
);

Parameters

  • condition
    [in] The initial condition.
  • newCondition
    [out, retval] The address of a variable that receives a pointer to an IUIAutomationCondition interface representing the negative of the initial condition specified by the condition parameter.

Return Value

Returns S_OK if successful, or an error value otherwise.

See Also

IUIAutomationCondition, IUIAutomationElement::FindAll, IUIAutomationElement::FindAllBuildCache, IUIAutomationElement::FindFirst, IUIAutomationElement::FindFirstBuildCache