[PATCH 2/4] uiautomationcore: Add support for passing WinEvents to a custom callback function.