This is probably a case where you will need the developers to add some kind of testability interface, such as COM or a dll. I have had this problem before with docked windows, where a COM interface was added to allow manipulation of the windows via a user-defined function library.
If it does not affect the item you are verifying with the test then I suggest you collaborate with developers to give you a 'back door'.
If you had to identify, in one word, the reason
why the human race has not achieved, and never
will achieve, its full potential that word would be "meetings".