IUIAutomationPatternInstance::GetProperty Method
The client wrapper object implements the IUIAutomation::get_CurrentX and IUIAutomationElement::get_CachedX methods by calling this function, specifying the property by index.
Syntax
HRESULT GetProperty( UINT Index, BOOL cached, UIAutomationType type, void *pPtr );
Parameters
- Index
[in] The index of the property.- cached
[in] TRUE if the property should be retrieved from the cache, otherwise FALSE.- type
[in] A value from the UIAutomationType enumerated type indicating the data type of the property.- pPtr
[out, retval] The address of a variable that receives the value of the property.
Return Value
Returns S_OK if successful, or an error value otherwise.
See Also