#include <uiautomation.h> // CoInitialize must be called before calling this function, and the // caller must release the returned pointer when finished with it. // HRESULT InitializeUIAutomation(IUIAutomation **ppAutomation) { return CoCreateInstance(CLSID_CUIAutomation, NULL, CLSCTX_INPROC_SERVER, IID_IUIAutomation, reinterpret_cast<void**>(ppAutomation)); }Has any one used the CUIAutomation Object, or can give me an idea of where to start? I have some .NET code that uses the .NET wrappers for the object, but I'd rather stick with the Win32API if possible, and preferably just using VFP code.