Reputation: 37
AccessibleObjectFromWindow(hwnd, OBJID_WINDOW, IID_IAccessible, (void**)&pAcc)
HRESULT hr;
hr = pAcc->QueryInterface(IID_IServiceProvider, (void **)&pSP)
.However when tried to use the QueryService call on the obtained IServiceProvider using the code HRESULT hr = pServiceProvider->QueryService(IID_IHTMLWindow2, IID_IHTMLWindow2, (void**)&pWindow)
it fails with a return -2147024809, which is 0x80070057. Not sure as to why this is happening, just wondering if there are any specific setting on the server machine (Windows Server 2008 R2) which is preventing this call from being successfully.
Also, the above step which I have described is successfully in Windows 7 environment.
To Note : Version of Internet Explorer installed is 10
Upvotes: 0
Views: 759