About AutomationInteropProvider.HostProviderFromHandle
It can return a provider from any window which has a handle, including not only top-level windows, but also normal controls such as buttons.
The following sample demonstrates that a provider is successfully returned from a button handle:

The output:

This entry was posted
on Wednesday, March 3rd, 2010 at 2:59 am and is filed under Uncategorized.
You can follow any responses to this entry through the RSS 2.0 feed.
You can leave a response, or trackback from your own site.