Coding problem related to getting pointer to managed types for MSAA/IAccessible2 "Shim"

Stanley and Cynthia,

Suyang (my student) working on the Assistive Technology Test Adapter (ATTA) for MSAA/Iccessible has run into a programming error message we have not been able to figure out how to solve.

Can you help point us in the right direction to understand how to fix the following error:
 “Cannot take the address of, get the size of, or declare a pointer to a managed type [‘IAccessible’]”

Is this a new security feature in Windows 10 we must get some type of signature file to support a privileged access to other windows?

Thanks for any help you can provide,
Jon


GitHub Link:
https://github.com/schen154/ATTA.git


Questions:

1.     In order to verify MSAA info, I use the AccessibleObjectFromWindow function to retrieve IAccessible API from UI elements. And I’m getting this error while trying to do declare an IAccessible pointer.

         IAccessible* p_IAcc;
           AccessibleObjectFromWindow(FxWinHandle, OBJID_NATIVEOM,                                                                                                  IID_IAccessible.ToByteArray(),  (void**)&p_IAcc);

      “Cannot take the address of, get the size of, or declare a pointer to a managed type [‘IAccessible’]”

2.     If an IAccessible API is obtained with AccessibleObjectFromWindow, how is an IA2 API obtained from an UI element? Are both IA and IA2 present for UI elements?

3.     Are all the implementations of IA2 API included in the  IAccessible2Proxy.dll? Is that the only thing I need to use IA2?

I am still learning about the accessibility APIs so these questions might seem a bit dumb or even not good. Thank you for your patience!


Suyang


Jon Gunderson, Ph.D.
Coordinator
Accessible IT Group
Disability Resources and Education Services
College of Applied Health Sciences
University of Illinois at Urbana-Champaign

E-mail: jongund@illinois.edu
WWW: http://disability.illinois.edu/academic-support/aitg

Received on Friday, 9 September 2016 14:14:25 UTC