IUIAutomationEventHandlerGroup::AddChangesEventHandler method (uiautomationclient.h)
Registers a method that handles change events.
Syntax
HRESULT AddChangesEventHandler(
TreeScope scope,
[in] int *changeTypes,
[in] int changesCount,
[in] IUIAutomationCacheRequest *cacheRequest,
[in] IUIAutomationChangesEventHandler *handler
);
Parameters
scope
[in] changeTypes
A pointer to a list of integers that indicate the change types the event represents.
[in] changesCount
The number of changes that occurred in this event.
[in] cacheRequest
A pointer to a cache request, or NULL if no caching is wanted.
[in] handler
A pointer to the object that handles the changes event.
Return value
If this method succeeds, it returns S_OK. Otherwise, it returns an HRESULT error code.
Remarks
Before implementing an event handler, you should be familiar with the threading issues described in Understanding Threading Issues.
Requirements
Requirement | Value |
---|---|
Minimum supported client | Windows 10, version 1809 [desktop apps only] |
Minimum supported server | Windows Server, version 1709 [desktop apps only] |
Target Platform | Windows |
Header | uiautomationclient.h (include UIAutomation.h) |
See also
Feedback
https://aka.ms/ContentUserFeedback.
Coming soon: Throughout 2024 we will be phasing out GitHub Issues as the feedback mechanism for content and replacing it with a new feedback system. For more information see:Submit and view feedback for