IUIAutomation::ElementFromHandleBuildCache Method
Retrieves a UI Automation element for the specified window, prefetches the requested properties and control patterns, and stores the prefetched items in the cache.
Syntax
HRESULT ElementFromHandleBuildCache( UIA_HWND hwnd, IUIAutomationCacheRequest *cacheRequest, IUIAutomationElement **element );
Parameters
- hwnd
[in] The window handle.- cacheRequest
[in] The address of the IUIAutomationCacheRequest interface of the cache request, which specifies the properties and control patterns to store in the cache.- element
[out, retval] The address of a variable that receives a pointer to the IUIAutomationElement interface.
Return Value
Returns S_OK if successful, or an error value otherwise.
See Also