[PATCH 1/7] uiautomationcore: Introduce uia_event_for_each function for iterating through registered events.