Skip to content

Latest commit

 

History

History
71 lines (58 loc) · 3.18 KB

nf-uiautomationclient-iuiautomation-getfocusedelement.md

File metadata and controls

71 lines (58 loc) · 3.18 KB
UID title description helpviewer_keywords old-location tech.root ms.assetid ms.date ms.keywords req.header req.include-header req.target-type req.target-min-winverclnt req.target-min-winversvr req.kmdf-ver req.umdf-ver req.ddi-compliance req.unicode-ansi req.idl req.max-support req.namespace req.assembly req.type-library req.lib req.dll req.irql targetos req.typenames req.redist ms.custom f1_keywords dev_langs topic_type api_type api_location api_name
NF:uiautomationclient.IUIAutomation.GetFocusedElement
IUIAutomation::GetFocusedElement (uiautomationclient.h)
Retrieves the UI Automation element that has the input focus.
GetFocusedElement
GetFocusedElement method [Windows Accessibility]
GetFocusedElement method [Windows Accessibility]
IUIAutomation interface
IUIAutomation interface [Windows Accessibility]
GetFocusedElement method
IUIAutomation.GetFocusedElement
IUIAutomation::GetFocusedElement
uiauto.uiauto_IUIAutomation_GetFocusedElement
uiauto_IUIAutomation_GetFocusedElement
uiautomationclient/IUIAutomation::GetFocusedElement
winauto.uiauto_IUIAutomation_GetFocusedElement
winauto\uiauto_IUIAutomation_GetFocusedElement.htm
WinAuto
a75f03bc-f472-40bf-8fa2-8c1d3ddf4fbb
12/05/2018
GetFocusedElement, GetFocusedElement method [Windows Accessibility], GetFocusedElement method [Windows Accessibility],IUIAutomation interface, IUIAutomation interface [Windows Accessibility],GetFocusedElement method, IUIAutomation.GetFocusedElement, IUIAutomation::GetFocusedElement, uiauto.uiauto_IUIAutomation_GetFocusedElement, uiauto_IUIAutomation_GetFocusedElement, uiautomationclient/IUIAutomation::GetFocusedElement, winauto.uiauto_IUIAutomation_GetFocusedElement
uiautomationclient.h
UIAutomation.h
Windows
Windows 7, Windows Vista with SP2 and Platform Update for Windows Vista, Windows XP with SP3 and Platform Update for Windows Vista [desktop apps only]
Windows Server 2008 R2, Windows Server 2008 with SP2 and Platform Update for Windows Server 2008, Windows Server 2003 with SP2 and Platform Update for Windows Server 2008 [desktop apps only]
UIAutomationClient.idl
Windows
19H1
IUIAutomation::GetFocusedElement
uiautomationclient/IUIAutomation::GetFocusedElement
c++
APIRef
kbSyntax
COM
UIAutomationClient.h
IUIAutomation.GetFocusedElement

IUIAutomation::GetFocusedElement

-description

Retrieves the UI Automation element that has the input focus.

-parameters

-param element [out, retval]

Type: IUIAutomationElement**

Receives a pointer to the UI Automation element.

-returns

Type: HRESULT

If this method succeeds, it returns S_OK. Otherwise, it returns an HRESULT error code.

-remarks

The IUIAutomation::GetFocusedElement method returns the UIA_E_ELEMENTNOTAVAILABLE error code if the focused element is already removed by the time the method returns. Clients should handle errors from this method gracefully; for example, by trying the call again.