For some performance reason, I am doing searches in the accessibility tree using C++ unmanaged UIA API. However most of our other functions take Managed AutomationElement in .NET for other processing. I do not want to re-write all of them due to various reasons including time.
Is there a way to convert unmanaged IUIAutomationElement* to managed AutomationElement in .NET?