How to Get the State from AccessibleObjectFromWindow

Dear All,

I got the Information about text box, push button, edit box from the Internet Explorer using AccessibleObjectFromWindow.

When I use the Microsoft AccExplorer 2.0 I got the State as protected when I move to the password Edit box and When I use the sample program which I downloaded from Msdn, gives only focusable, invisible Information.

Here is the code:
-------------------

for (dwStateBit = STATE_SYSTEM_UNAVAILABLE; dwStateBit < STATE_SYSTEM_ALERT_HIGH; dwStateBit <<= 1)
{
if (varRetVal.lVal & dwStateBit)
{
cChars += GetStateText(dwStateBit, lpszState + cChars, cchState - cChars);
*(lpszState + cChars++) = ',';
}
}
--------------

Why the get_accState () not gives the protected Information.

How to get it

pls guide me


------------------


Hey I got it, the problem is in the oleacc.h and oleacc.lib file only. There is no Flag setup for STATE_SYSTEM_PROTECTED in my oleacc.h file.

Now I want is where I can get the latest oleacc.h file, .lib and .dll file.

Thanks for ur information



Answer this question

How to Get the State from AccessibleObjectFromWindow