IAccIdentity is not returning unique values?

65 views Asked by At

As discussed in a previous post, I'm making an equivalent of Inspect.exe. To do this, I'm using IAccIdentity to obtain a "unique" ID of each control.

However, it turns out these IDs are NOT unique?

Proof of non-uniqueness

In this case, I could use accName to distinguish the elements, but I fear that this won't guarantee anything... Is there any method of obtaining a guaranteed unique reference to an element which is object instance independent?

Note: I concatenated the role in there too, to try to make it more unique, but failed.

0

There are 0 answers