IUIAutomationLegacyIAccessiblePattern::CurrentRole Property
Retrieves the Microsoft Active Accessibility role of the element.
Syntax
HRESULTÂ IUIAutomationLegacyIAccessiblePattern::get_CurrentRole(DWORDÂ *pdwRole);
Parameters
- pdwRole
The address of a variable that receives the role identifier, such as ROLE_SYSTEM_LIST.
Return Value
Returns S_OK if successful, or an error value otherwise.