When I use typelib inspector for dll UIAutomationCore.dll I have the feeling it generates something incorrect searching on *getrootelement* I only get the cached version pretty sure there is a getRootElement function as its the desktop see see http://msdn.microsoft.com/en-us/library/windows/desktop/ee671544(v=vs.85).aspx defect in type lib inspector?