I apologize for the lack of answers I gave you regarding this matter in the past. Proof that I should have done so before: it was a bug that prevented you from using this function properly. Your code is correct, the bug was fixed in build 341. Have fun with IAccessible
.
jscript code:
var pAccessibleData = Interop.Allocate(4);
if(Interop.Call('oleacc', 'AccessibleObjectFromWindow', hWnd, 0xFFFFFFFC /* OBJID_CLIENT */, IID_IAccessible, pAccessibleData) == 0)
{
var iAccessible = pAccessibleData.ReadInterfacePtr(0);
if(iAccessible)
{
iAccessible.accHitTest(0, 0);
}
}