removeChangesEventHandler method
void
removeChangesEventHandler(
- IUIAutomationElement? element,
- IUIAutomationChangesEventHandler? handler
Removes a changes event handler.
Throws a WindowsException on failure.
To learn more, see learn.microsoft.com/windows/win32/api/uiautomationclient/nf-uiautomationclient-iuiautomation4-removechangeseventhandler.
Implementation
@pragma('vm:prefer-inline')
void removeChangesEventHandler(
IUIAutomationElement? element,
IUIAutomationChangesEventHandler? handler,
) {
final hr$ = HRESULT(
_RemoveChangesEventHandlerFn(
ptr,
element?.ptr ?? nullptr,
handler?.ptr ?? nullptr,
),
);
if (hr$.isError) throw WindowsException(hr$);
}