Share via


UiaSetFocus Function

Note  This function is deprecated. Client applications should use the Microsoft UI Automation COM interfaces instead.

Sets the input focus to the specified element in the user interface (UI).

Syntax

HRESULT UiaSetFocus(      
    HUIANODE hnode
);

Parameters

  • hnode
    [in] The element that receives focus.

Return Value

Returns S_OK if successful or an error value otherwise.

Function Information

Stock Implementation uiautomationcore.dll
Custom Implementation No
Header uiautomationcoreapi.h
Import library uiautomationcore.lib
Minimum operating systems Windows XP