Share via


UiaRemoveEvent Function

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

Removes a listener for events on a node in the UI Automation tree.

Syntax

HRESULT UiaRemoveEvent(      
    HUIAEVENT hevent
);

Parameters

  • hevent
    [in] The event to remove. This value was retrieved from UiaAddEvent.

Return Value

Returns S_OK if successful or an error value otherwise.

Remarks

The callback pointer, the scope, the node, and the list of properties must match exactly the parameters that were sent to the corresponding UiaAddEvent.

Function Information

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