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.