OleAccAccessibleObjectFromEvent Method

Retrieves the address of the IAccessible interface for the object that generated the event that is currently being processed by the client's event hook function.

Definition

Namespace: DevCase.Win32.NativeMethods
Assembly: DevCase.net48 (in DevCase.net48.dll) Version: 6.0.0.0 (6.0)
XMLNS for XAML: Not mapped to an xmlns.
[DllImportAttribute("OleAcc.dll")]
public static HResult AccessibleObjectFromEvent(
	IntPtr hWnd,
	uint id,
	uint childId,
	out IAccessible refAccessible,
	out Object refChild
)

Parameters

hWnd  IntPtr
Specifies the window handle of the window that generated the event.

This value must be the window handle that is sent to the event hook function.

id  UInt32
Specifies the object ID of the object that generated the event.

This value must be the object ID that is sent to the event hook function.

childId  UInt32
Specifies whether the event was triggered by an object or one of its child elements.

If the object triggered the event, childID is CHILDID_SELF.

If a child element triggered the event, childID is the element's child ID. This value must be the child ID that is sent to the event hook function.

refAccessible  IAccessible

Address of a pointer variable that receives the address of an IAccessible interface.

The interface is either for the object that generated the event, or for the parent of the element that generated the event.

refChild  Object
A VARIANT structure that specifies the child ID that can be used to access information about the UI element.

Return Value

HResult
If successful, returns S_OK.

If not successful, returns a HResult error code.

Remarks

See Also