Declare Function WindowFromAccessibleObject Lib "oleacc.dll" (ByVal pacc as IAccessible, ByRef phwnd as IntPtr) As Integer
Sample Code c#:
//MouseHook.POINT structure type of POINT
public class Miscelanious
static Accessibility.IAccessible iAccessible;//interface: Accessibility namespace
static object ChildId;
public static IntPtr GetControlHandlerFromPoint(MouseHook.POINT location)
If you are calling this API from .NET Framework version 2.0 or higher, be sure to put the STAThread attribute on your main(), or manually set the ApartmentState property of the thread you are calling this from to ApartmentStates.STA, or you will get an error code of 0x8001010D which is a “cannot call out exception because of an input synchronous call”.
The IAccessible interface is the heart of Microsoft Active Accessibility. Applications implement this Component Object Model (COM) interface to represent their custom user interface elements, which can include their client area as accessible objects, if necessary. Client applications call IAccessible methods and properties to obtain information about an application's user interface and data.
3/16/2007 2:09:04 PM - -126.96.36.199
3/31/2008 1:53:29 PM - -188.8.131.52
TODO - a short description
1/11/2008 6:01:52 AM - -184.108.40.206
Please edit this page!
Do you have...
helpful tips or sample code to share for using this API in managed code?
corrections to the existing content?
variations of the signature you want to share?
additional languages you want to include?
Select "Edit This Page" on the right hand toolbar and edit it! Or add new pages containing supporting types needed for this API (structures, delegates, and more).