Share via


UiaEventRemoveWindow Function

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

Removes a window from the event listener.

Syntax

HRESULT UiaEventRemoveWindow(      
    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 remove.

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