IUIAutomation::RemoveAutomationEventHandler Method
Removes the specified UI Automation event handler.
Syntax
HRESULT RemoveAutomationEventHandler( EVENTID eventId, IUIAutomationElement *element, IUIAutomationEventHandler *handler );
Parameters
- eventId
[in] The identifier of the event being handled. For a list of event IDs, see Event Identifiers.- element
[in] The address of the IUIAutomationElement interface of the UI Automation element that is handling the event.- handler
[in] The handler method that was passed to IUIAutomation::AddAutomationEventHandler for the specified event identifier and UI Automation element.
Return Value
Returns S_OK if successful, or an error value otherwise.
Remarks
A UI Automation client should not use multiple threads to add or remove event handlers. Unexpected behavior can result if one event handler is being added or removed while another is being added or removed in the same client process.
See Also
IUIAutomation::RemoveAllEventHandlers, IUIAutomation::RemoveFocusChangedEventHandler, IUIAutomation::RemovePropertyChangedEventHandler, IUIAutomation::RemoveStructureChangedEventHandler