#1374 Error in function signature for AccessibleObjectFromEvent

closed-fixed
2010-08-24
2009-11-24
Rick
No

The definition for the MSAA function AccessibleObjectFromEvent in oleacc.h is incorrect. In the latest win23api download
w32api-3.14-mingw32-src.tar.gz
the function definition is
STDAPI AccessibleObjectFromEvent(HWND,DWORD,DWORD,IAccessible*,VARIANT*);

According to Microsoft documentation on MSDN, e.g.,
http://msdn.microsoft.com/en-us/library/dd317976\(VS.85).aspx

the fourth argument should be a pointer to a pointer, i.e., IAccessible**:

STDAPI AccessibleObjectFromEvent(
__in HWND hwnd,
__in DWORD dwObjectID,
__in DWORD dwChildID,
__out IAccessible **ppacc,
__out VARIANT *pvarChild
);

The function signature from the version of oleacc.h in Borland 6 is
STDAPI AccessibleObjectFromEvent(HWND hwnd, DWORD dwId, DWORD dwChildId, IAccessible** ppacc, VARIANT* pvarChild);
which conforms to the MSDN documentation cited above.

Discussion

    • assigned_to: nobody --> ir0nh34d
    • status: open --> closed-fixed
     
  • Thank you for the report, I've committed a fix to CVS.