OleAccAccessibleObjectFromPoint(NativePoint, IAccessible, Object) Method

Retrieves the address of the IAccessible interface pointer for the object displayed at a specified point on the screen.

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 AccessibleObjectFromPoint(
	NativePoint ptScreen,
	out IAccessible refAccessible,
	out Object refChild
)

Parameters

ptScreen  NativePoint
Specifies, in physical screen coordinates, the point that is examined.
refAccessible  IAccessible
A variable that receives the address of the object's IAccessible interface.
refChild  Object
A VARIANT structure that specifies whether the IAccessible interface pointer that is returned in refAccessible belongs to the object displayed at the specified point, or to the parent of the element at the specified point.

The vt member of the VARIANT structure is always VT_I4.

If the lVal member is CHILDID_SELF, then the IAccessible interface pointer at refAccessible belongs to the object at the point.

If the lVal member is not CHILDID_SELF, refAccessible is the address of the IAccessible interface of the child element's parent object.

Clients must call VariantClear on the retrieved VARIANT structure when finished using it.

Return Value

HResult
If successful, returns S_OK.

If not successful, returns a HResult error code.

Remarks

See Also