IUIAutomation::CreateTreeWalker Method

Retrieves an IUIAutomationTreeWalker interface that can be used to traverse the Microsoft UI Automation tree.

Syntax

HRESULT CreateTreeWalker(      
    IUIAutomationCondition *pCondition,
    IUIAutomationTreeWalker **walker
);

Parameters

  • pCondition
    [in] The address of the IUIAutomationCondition interface of a condition that specifies the elements of interest.
  • walker
    [out, retval] The address of a variable that receives a pointer to the IUIAutomationTreeWalker interface.

Return Value

Returns S_OK if successful, or an error value otherwise.