Share via


UiaEventAddWindow Function

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

Adds a window to the event listener.

Syntax

HRESULT UiaEventAddWindow(      
    HUIAEVENT hevent,
    HWND hwnd
);

Parameters

  • hevent
    [in] The event being listened for. This event was retrieved from UiaAddEvent.
  • hwnd
    [in] The handle of the window to add.

Return Value

Returns S_OK if successful or an error value otherwise.

Remarks

Function Information

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