IUIAutomation5::RemoveNotificationEventHandler method

Removes a notification event handler.

Syntax

HRESULT RemoveNotificationEventHandler(
  IUIAutomationElement                  *element,
  IUIAutomationNotificationEventHandler *handler
);

Parameters

element

Type: IUIAutomationElement*

A pointer to the UI Automation element from which to remove the handler.

handler

Type: IUIAutomationNotificationEventHandler*

A pointer to the interface that was passed to AddNotificationEventHandler.

Return Value

Type: HRESULT

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

Requirements

   
Minimum supported client Windows 10, version 1709 [desktop apps only]
Minimum supported server Windows Server, version 1709 [desktop apps only]
Target Platform Windows
Header uiautomationclient.h (include UIAutomation.h)

See Also

IUIAutomation5

RemoveAllEventHandlers