IUIAutomation::CreateCacheRequest Method
Creates a cache request.
Syntax
HRESULT CreateCacheRequest( IUIAutomationCacheRequest **cacheRequest );
Parameters
- cacheRequest
[out, retval] The address of a variable that receives a pointer to an IUIAutomationCacheRequest interface.
Return Value
Returns S_OK if successful, or an error value otherwise.
Remarks
After obtaining the IUIAutomationCacheRequest interface, use its methods to specify properties and patterns to be cached when a UI Automation element is obtained.
See Also
IUIAutomationTreeWalker, IUIAutomationElement::FindAllBuildCache, IUIAutomationElement::FindFirstBuildCache, Caching UI Automation Properties and Control Patterns